Skip to content

Instantly share code, notes, and snippets.

@tivac
Created May 14, 2010 19:18
Show Gist options
  • Save tivac/401535 to your computer and use it in GitHub Desktop.
Save tivac/401535 to your computer and use it in GitHub Desktop.
<clips name="Mine" scheme="web">
<clip name="HTML page stub" shortcut="html">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;${1:Page Title}&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html;charset=UTF-8"&gt;
${2:&lt;!-- CSS --&gt;}
&lt;/head&gt;
&lt;body lang="en-US"&gt;
${3:&lt;!-- Content! --&gt;}
${4:&lt;!-- JS --&gt;}
&lt;/body&gt;
&lt;/html&gt;
</clip>
<clip name="Script tag" shortcut="js">
&lt;script type="text/javascript" ${1:src=""}&gt;${0}&lt;/script&gt;
</clip>
<clip name="Style tag" shortcut="css">
&lt;link type="text/css" rel="stylesheet" href="${0}" /&gt;
</clip>
<clip name="YUI JS include" shortcut="yui">
&lt;script type="text/javascript" src="http://yui.yahooapis.com/combo?3.1.1/build/yui/yui-min.js"&gt;&lt;/script&gt;
${0}
</clip>
<clip name="YUI().use" shortcut="use">
YUI().use("${1:node}", function(Y) {
${0}
});
</clip>
<clip name="console.log" shortcut="log">
console.log(${0}); //TODO: REMOVE DEBUGGING CODE
</clip>
<clip name="For Loop" shortcut="for">
for(${1:i} = 0, ${2:l} = ${3:something}.length}; ${1} &lt; ${2}; ${1}++) {
${0}
}
</clip>
</clips>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment