Skip to content

Instantly share code, notes, and snippets.

View larister's full-sized avatar

Alastair Lockie larister

  • Shopify
  • Lewes
  • 23:29 (UTC)
View GitHub Profile
@larister
larister / Add EOL Semicolon.sublime-macro
Created April 10, 2012 11:35
Add semicolon to end of line macro for Sublime Text 2
[
{"command": "move_to", "args": {"to": "hardeol"}},
{"command": "insert", "args": {"characters": ";"}}
]
@larister
larister / Add Line Semicolon.sublime-macro
Created April 10, 2012 11:36
Add semicolon to end of line & add new line macro for Sublime Text 2
[
{"command": "move_to", "args": {"to": "hardeol"}},
{"command": "insert", "args": {"characters": ";\n"}}
]
@larister
larister / consolelog.sublime-snippet
Created April 10, 2012 11:37
Console.log sublime text 2 snippet
<snippet>
<content><![CDATA[
console.log("${0}");
]]></content>
<tabTrigger>con</tabTrigger>
<scope>source.js</scope>
</snippet>
@larister
larister / Preferences.sublime-settings
Created October 28, 2012 15:27
Sublime Text 2 preferences
{
// Show folders in the side bar in bold
"bold_folder_labels": true,
// Word list to use for spell checking
"dictionary": "Packages/Language - English/en_GB.dic",
// Set to true to draw a border around the visible rectangle on the minimap.
// The color of the border will be determined by the "minimapBorder" key in
// the color scheme
@larister
larister / git-recent-branch.sh
Created April 12, 2013 15:43
recent git branches
git config --global alias.recentbranch "for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)'"
@larister
larister / gist:9054082
Created February 17, 2014 16:38
marks
export MARKPATH=$HOME/.marks
function leap {
cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
}
function mark {
mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
}
function unmark {
rm -i "$MARKPATH/$1"
}
@larister
larister / brogrammer.tmTheme
Last active August 29, 2015 14:04
Tweaked Brogrammer
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Brogrammer</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@larister
larister / JSConf.md
Last active August 29, 2015 14:06
JSConf Blog Post

I'm exhausted. Tired to my bones, I'm clumsy in my sleepiness and put salt in my tea earlier. My brain is like a telephone box in a Guinness World Records attempt, crammed with a thousand writhing ideas fighting for position. Where am I? What happened to me? And was it worth it? The answers, respectively: I'm in Berlin, it was JSConf EU this weekend, and hells yeah - with bells on.

A bit of history

JavaScript has grown from a joke in coding circles ten years ago to the most ubiquitous and active language on the planet. 5 years ago, the inaugaral JSConf EU celebrated this growing trend. At that first conference, back in 2009, a young Ryan Dahl introduced a new way to run JavaScript on the server; he called this new technology "Node.js". Fast forward to the present day, and Node has seen a meteoric rise, handling with graceful ease the phenomenal amount of traffic to the Walmart

@larister
larister / gist:6e4c8eefa093345a4d32
Last active August 29, 2015 14:08
Async 2014 Show'n'Tell

[Async's][async] [2014 International Show n' Tell][event]

Thursday 6th November, 2014

  • [Full info on the Async website][event]
  • Sign up to attend [on the event's Lanyrd page][event-lanyrd].

Speakers gist

Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, related tech (HTML, CSS, SVG, etc), or the wider world of web.

@larister
larister / gist:be8bedc39d376ab6b8aa
Last active August 29, 2015 14:15
Async Spring 2015 Show'n'Tell

[Async's][async] [Spring 2015 Show n' Tell][event]

Thursday 19th February, 2015

  • [Full info on the Async website][event]
  • Sign up to attend [on the event's Lanyrd page][event-lanyrd].

Speakers gist

Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, related tech (HTML, CSS, SVG, etc), or the wider world of web.