Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nerded on github.
  • I am nerded (https://keybase.io/nerded) on keybase.
  • I have a public key whose fingerprint is 0722 2BD8 3177 0188 24C1 F3E6 CD7A 70BF 235B 9065

To claim this, I am signing this object:

// Playground - noun: a place where people can play
import Cocoa
// Immutable
let apiKey = "12lkj1llk1j291lnk12el"
// Mutable
var changingValue = "I might change!"
@nerdEd
nerdEd / gist:6073208
Created July 24, 2013 18:35
Rails.vim projects
let g:rails_projections = {
\ "app/uploaders/*_uploader.rb": {"command": "uploader"},
\ "features/step_definitions/*_steps.rb": {"command": "step"},
\ "spec/blueprints/*_blueprint.rb": {"command": "blueprint", "affinity": "model"},
\ "spec/factories/*_factory.rb": {"command": "factory", "affinity": "model"},
\ "spec/fabricators/*_fabricator.rb": {"command": "fabricator", "affinity": "model"},
\ "spec/support/*": {"command": "support"},
\ "features/support/*": {"command": "support"},
\ "features/*.feature": {"command": "feature"}}
@nerdEd
nerdEd / gist:1995576
Created March 7, 2012 19:50
Git completion for bash
source /usr/local/Cellar/git/1.7.9/etc/bash_completion.d/git-completion.bash
@nerdEd
nerdEd / ComcastSupport.txt
Created February 21, 2012 00:50
Comcast support...
analyst Gemaima has entered room
Gemaima: Hello Ed, Thank you for contacting Comcast Live Chat Support. My name is Gemaima. Please give me one moment to review your information.
Ed: My Issue: Internet is not working, has been going down intermittently for past several weeks. Modem and router have been reset and it doesn't fix the issue.
Gemaima: Please wait, while the problem is escalated to another analyst
analyst Gemaima has entered room
analyst Arianne  has entered room
Arianne : Hello Ed, Thank you for contacting Comcast Live Chat Support. My name is Arianne . Please give me one moment to review your information.
Arianne : A pleasant day to you! I hope your day is going well.
analyst Gemaima has left room
analyst Gemaima has left room
@nerdEd
nerdEd / finalizer.rb
Created January 19, 2012 22:53
Using ObjectSpace.define_finalizer
class Source
def initialize(source_zip)
@tmp_dir = Dir.mktmpdir
ObjectSpace.define_finalizer(self, self.class.finalize(@tmp_dir))
# Dump contents of zip into tmp dir
end
def self.finalize(tmp_dir)
proc {FileUtils.rm_rf(tmp_dir)}
end
@nerdEd
nerdEd / gist:1444884
Created December 7, 2011 21:58
CODEZ
cmp.fireEvent = Ext.Function.createSequence(cmp.fireEvent, function(){ console.log(arguments);});