Skip to content

Instantly share code, notes, and snippets.

View nicksieger's full-sized avatar

Nick Sieger nicksieger

View GitHub Profile
@nicksieger
nicksieger / wtf.rb
Created March 28, 2010 19:53 — forked from wycats/wtf.rb
class Foo < String
attr_reader :omg
def initialize(str, omg)
super str
@omg = omg
end
def hash
[@omg, to_str].hash
end
@nicksieger
nicksieger / Gemfile
Created July 26, 2011 16:06 — forked from copiousfreetime/my-gh-issues.rb
My Github Issues
source :rubygems
gem 'octokit'
gem 'awesome_print'
gem 'rainbow'
gem 'jruby-openssl'
@nicksieger
nicksieger / output.txt
Created August 3, 2011 17:58 — forked from wayneeseguin/gist:1122780
pickjdk shell function refactored from Nick Sieger's script
#!/bin/bash
#
# Quicky Waynification of Nick's pickjdk
#
#
# pickjdk: for switching between Java versions:
# From Nick Sieger: http://pastie.org/170326
# "I just symlink soylatte to:
# /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0-soylatte/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0-soylatte"
@nicksieger
nicksieger / Send to Evernote.scpt
Created January 1, 2012 23:48 — forked from turadg/Send Chrome to OmniFocus.scpt
OmniFocus integrations
-- from http://veritrope.com/code/copy-omnifocus-item-uri-to-evernote/
tell front window of application "OmniFocus"
try
set theTrees to selected trees of content
if (count of theTrees) < 1 then
set theTrees to selected trees of sidebar
end if
if (count of theTrees) < 1 then
@nicksieger
nicksieger / chess.rb
Created February 23, 2012 22:16 — forked from daveray/chess.rb
Joy of Clojure Chess Example in Familiar/JRuby
# Rough translation from Joy of Clojure refs example in Familiar
# https://github.com/daveray/familiar
# https://github.com/joyofclojure/book-source/blob/master/src/joy/refs.clj
$initial_board = [[:o, :k, :o],
[:o, :o, :o],
[:o, :K, :o]].to_clojure
# (defn board-map [f bd]
# (vec (map #(vec (for [s %] (f s))) bd)))
#!/bin/bash
#
# Zoom.us full uninstall script
#
# - Download this file locally
# - Run `chmod 755 ./remove_zoom_us_macos.sh`
# - Run `./remove_zoom_us_macos.sh`
echo Cleaning Zoom…