Skip to content

Instantly share code, notes, and snippets.

View radelmann's full-sized avatar

Rob Adelmann radelmann

View GitHub Profile
@radelmann
radelmann / js.if.else.sublime-snippet
Created October 24, 2015 21:51
sublime snippet - js if else
<snippet>
<content><![CDATA[
if (${1:condition}) {
${2:body}
} else {
${3:body}
}
]]></content>
<description>js if else</description>
<tabTrigger>ifelse</tabTrigger>
@radelmann
radelmann / js.func.expr.sublime-snippet
Created October 24, 2015 21:30
sublime - js function expression
<snippet>
<content><![CDATA[
var ${1:var} = function (${2:params}) {
${3:body}
};
]]></content>
<description>js function expression</description>
<tabTrigger>varf</tabTrigger>
<scope>source.js</scope>
</snippet>
@radelmann
radelmann / alias.chrome
Last active October 22, 2015 04:59
create an alias for opening html file in chrome from cmd line
openChrome() {
open -a "/Applications/Google Chrome.app" $1
}
alias chrome=openChrome
@radelmann
radelmann / node.sublime-build
Last active December 5, 2015 23:44
Node.js Build System for Sublime Text
{
"cmd": ["/usr/local/bin/node", "$file"],
"selector": "source.js"
}
@radelmann
radelmann / sublime.sym.link
Last active October 25, 2015 21:44
Sublime Text 2 - Create Symbolic Link - Terminal Cmd
@radelmann
radelmann / sublime.keymaps.home.end
Last active August 29, 2015 14:21
Sublime Text - Key Maps - home, end, shift+home, shift+end
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } }