-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
197 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +0,0 @@ | ||
snippet ( "parens" i | ||
(${1}${VISUAL}) | ||
endsnippet | ||
|
||
snippet { "parens" i | ||
{ ${1}${VISUAL} } | ||
endsnippet | ||
|
||
snippet [ "square brackets" i | ||
[${1}${VISUAL}] | ||
endsnippet | ||
|
||
snippet " "double quotes" i | ||
"${1}${VISUAL}"${2} | ||
endsnippet | ||
|
||
snippet ' "quotes" i | ||
'${1}${VISUAL}'${2} | ||
endsnippet | ||
|
||
snippet ` "backquotes" i | ||
\`${1}${VISUAL}\`${2} | ||
endsnippet | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,73 @@ | ||
snippet c= "css class" | ||
class="${1}" | ||
endsnippet | ||
|
||
snippet i= "css class" | ||
id="${1}" | ||
endsnippet | ||
|
||
snippet p "paragraph" | ||
<p> | ||
${VISUAL}$0 | ||
</p> | ||
endsnippet | ||
|
||
snippet d "div" | ||
<div> | ||
${VISUAL} | ||
</div> | ||
<div> | ||
${VISUAL}${1} | ||
</div> | ||
endsnippet | ||
|
||
snippet di "div" | ||
<div id="${1}"> | ||
${VISUAL}${2} | ||
</div> | ||
endsnippet | ||
|
||
snippet dc "div" | ||
<div class="${1}"> | ||
${VISUAL}${2} | ||
</div> | ||
endsnippet | ||
|
||
snippet li "<li> tag" | ||
<li> | ||
${1} | ||
</li>${2} | ||
endsnippet | ||
|
||
snippet html5 "html5 template" | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>${1}</title> | ||
<meta name="description" content="${2}"> | ||
<meta name="author" content="${3}"> | ||
<link rel="stylesheet" href="css/main.css" /> | ||
</head> | ||
<body> | ||
$0 | ||
</body> | ||
</html> | ||
endsnippet | ||
|
||
snippet script "script" | ||
<script src="${1:js/main.js}"></script>$0 | ||
endsnippet | ||
|
||
snippet link "link stylsheet" | ||
<link rel="stylesheet" href="${1}" /> | ||
endsnippet | ||
|
||
snippet iscript "inline script" | ||
<script> | ||
${VISUAL}${0} | ||
</script> | ||
endsnippet | ||
|
||
snippet "<([\w\.]+)" "html tag" br | ||
<`!p snip.rv = match.group(1)`${1}> | ||
${VISUAL}${2} | ||
</`!p snip.rv = match.group(1)`>${3} | ||
endsnippet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extends jsx, javascript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
snippet "<([\w\.]+)" "jsx tag" br | ||
<`!p snip.rv = match.group(1)`${1}> | ||
${VISUAL}${2} | ||
</`!p snip.rv = match.group(1)`>${3} | ||
endsnippet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extends ruby | ||
|
||
snippet b.p "binding.pry" | ||
binding.pry | ||
endsnippet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
snippet lh "line-height" | ||
line-height: ${1};$0 | ||
endsnippet | ||
|
||
snippet @m "@media()" | ||
@media (${1}) { | ||
${VISUAL} | ||
$0 | ||
} | ||
endsnippet | ||
|
||
snippet bc "background-color" | ||
background-color: ${1};$0 | ||
endsnippet | ||
|
||
snippet tac "text-align: center;" | ||
text-align: center; | ||
endsnippet |