Skip to content

Instantly share code, notes, and snippets.

View WhackCurrentTrack.scpt
(*
MODIFIED VERSION OF THIS SCRIPT TO REMOVE CONFIRMATIONS
Original Script: http://dougscripts.com/itunes/scripts/ss.php?sp=whackcurrenttrack
"Whack Current Track" for iTunes
written by Doug Adams
dougadams@mac.com
View rack_validate.rb
module Rack
# A rack middleware for validating HTML via w3c validator
class Validate
def initialize( app )
@app = app
end
def call( env )
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:

@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);});