Skip to content

Instantly share code, notes, and snippets.

Ed Schmalzle nerdEd

Block or report user

Report or block nerdEd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View gist:00abc59bc96848b732ba
// 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 Jul 24, 2013
Rails.vim projects
View gist:6073208
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 Mar 7, 2012
Git completion for bash
View gist:1995576
source /usr/local/Cellar/git/1.7.9/etc/bash_completion.d/git-completion.bash
@nerdEd
nerdEd / ComcastSupport.txt
Created Feb 21, 2012
Comcast support...
View ComcastSupport.txt
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 Jan 19, 2012
Using ObjectSpace.define_finalizer
View finalizer.rb
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
View gist:1444884
cmp.fireEvent = Ext.Function.createSequence(cmp.fireEvent, function(){ console.log(arguments);});
You can’t perform that action at this time.