Skip to content

Instantly share code, notes, and snippets.

Desmond Sadler dezman

Block or report user

Report or block dezman

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 dezman on github.
  • I am dezman (https://keybase.io/dezman) on keybase.
  • I have a public key whose fingerprint is C1D9 20E1 3C6E 789E 12DE FFC3 E475 3E1C 171A F7C6

To claim this, I am signing this object:

View shiva.js
// shiva.js
// a jasmine spec loader
// required global
window.jasmineRequire = require('./vendor/jasmine-2.5.2/jasmine.js')
window.specHelper = require('./helper.coffee')
// load jasmine
require('./vendor/jasmine-2.5.2/jasmine-html.js')
View see_shell.sh
#!/bin/bash
# math
echo $(( 1 + 1 ))
# look for a process by port number
lsof -i:3000
# look for a process and print its pid
ps aux | grep ruby | awk '{print $2}'
View git_tricky.sh
#!/bin/bash
# A more detailed git log
git log -p
# List modified files
git ls-files -m
# Search all git branches for string or regex
git rev-list --all | xargs git grep "string/regex"
View regex_cellent.md

Excellent Regexes:

Update Ruby Hashes:

(:|\")(\w+)\"? =>
$2:
View break_on_property_change.coffee
do ->
local_property = null
Object.defineProperty(@, 'property',
get: -> local_property
set: (val) ->
local_property = val
debugger
)
You can’t perform that action at this time.