Skip to content

Instantly share code, notes, and snippets.

sandstrom / example.rb
Created Sep 6, 2017 — forked from mislav/example.rb
Dump objects into YAML using specific style
View example.rb
full_data = {
response: {body: StyledYAML.literal(, status: 200},
person: StyledYAML.inline('name' => 'Steve', 'age' => 24),
array: StyledYAML.inline(%w[ apples bananas oranges ])
StyledYAML.dump full_data, $stdout
View the-one-that-got-away.txt
Katy Perry - The One That Got Away
Summer after high school when we first met
We make out in your Mustang to Radiohead
And on my 18th birthday
We got matching tattoos
Used to steal your parents' liquor
And climb to the roof
Talk about our future
sandstrom / fast_select.js
Last active Dec 16, 2015
Faster Em.Select
View fast_select.js
// A static select where options aren't child-views but plain option tags.
// This implementation is currently much faster than Em.Select on large collections.
(function() {
// shortcuts
var set = Em.set, get = Em.get;
Em.FastSelect = Em.Select.extend({
sandstrom /
Created Mar 31, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
View uncle-johnny.txt
The Killers - Uncle Johnny
When everybody else refrained
My uncle Johnny did cocaine
He's convinced himself right in his brain
That it helps to take away the pain
Hey, Johnny
Hey what you say Johnny
I wanna go out tonight