Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dhaskew on github.
  • I am askew (https://keybase.io/askew) on keybase.
  • I have a public key ASDVjIGch3E2i3Kw8W44aTKiSYH50CVxIsAKry4fscqOkQo

To claim this, I am signing this object:

@dhaskew
dhaskew / gist:f598e642b8b4a271a20d
Last active August 29, 2015 14:04
IronYard - HW 1
# Define a function to find the hypotenuse of a right triangle with side lengths a and b
def hypotenuse_right(a,b)
return a**2 + b**2
end
h = hypotenuse_right(1,2)
puts h
# What methods do strings have that symbols don't? Describe a few. What methods do symbols have that strings don't?
@dhaskew
dhaskew / power_events.applescript
Created March 1, 2014 23:06
#eventscripts #applescript #power #timemachine #
-- To receive the eventArgs parameter
-- we wrap the script in an on run handler
on run eventArgs
-- every eventArgs record has a trigger property
-- that describes the action that caused the script to be executed
set thisTrigger to (trigger of eventArgs)