Skip to content

Instantly share code, notes, and snippets.

View qrush's full-sized avatar
🕸️
Making internets

Nick Quaranto qrush

🕸️
Making internets
View GitHub Profile
private struct BoxInstance
{
public Vector3 position;
public Vector3 dimensions;
public Vector3 rotation;
public Vector4 color;
public bool inUse;
//*****************************************************************
@qrush
qrush / gist:9810
Created September 10, 2008 02:22
Mike,
Hello, I am from approximately two months in the future. On 10/22 at approx 2:34am CET a tachyon
field failure in the main resonating ring of the LHC causes a "temporal blowback". Shortly
thereafter, the resulting destruction of the strong nuclear force causes the world to vaporize in
seconds, while a few of us near the experiment are thrown into a temporal causality loop. While
the predestination event (or as we have come to call it "The Big Rewind") hasn't occurred yet to
you, for us it is about three years in our past. I came across your site looking to see if there
were any other scientists that may have theorized this phenomenon who may be of assistance in
preventing it. This brings me to my point, I have repeatedly checked your site for the past five
@qrush
qrush / gist:39099
Created December 22, 2008 19:31 — forked from defunkt/gist:39084
Featured Projects on GitHub!
mattetti/googlecharts
topfunky/bong
why/shoes
leachim6/hello-world
andychilton/cil
jimweirich/rake
rtomayko/git-sh
apenwarr/gitbuilder
pieter/gitx
psychs/limechat
@qrush
qrush / deploy.rb
Created January 9, 2009 23:56 — forked from Sutto/deploy.rb
task :check_revision do
unless `git rev-parse HEAD` == `git rev-parse origin/master`
puts ""
puts " \033[1;33m**************************************************\033[0m"
puts " \033[1;33m* WARNING: HEAD is not the same as origin/master *\033[0m"
puts " \033[1;33m**************************************************\033[0m"
puts ""
end
end
module StringTokenizer
VERSION = '0.0.1'
def tokenize(context)
self.gsub(/\$[^ ]*/) {|match|
context[match[1..-1].to_sym]
}
end
end
@qrush
qrush / .zshrc
Created April 24, 2009 14:39 — forked from jferris/gist:73948
tu/tf autocompletion for zsh
# autocompletion for ruby_test
# # works with tu/tf aliases
# # see also ~/bin/ruby_test.rb
_ruby_tests() {
if [[ -n $words[2] ]]; then
compadd `ruby_test -l ${words[2]}`
fi
}
compdef _ruby_tests ruby_test
alias tu="ruby_test unit"
class Test::Unit::TestCase
# assert_form posts_url, :put do
# assert_text_field :post, :title
# assert_text_area :post, :body
# assert_submit
# end
def assert_form(url, http_method = :post)
http_method, hidden_http_method = form_http_method(http_method)
assert_select "form[action=?][method=#{http_method}]", url do
if hidden_http_method
diff --git a/.gitignore b/.gitignore
index 5c3fc13..563a3bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,5 +3,3 @@ doc
coverage
.svn/
pkg
-*.swp
-tags
--type-add=ruby=.haml,.rake,.rsel,.builder
--type-add=html=.html.erb,.html.haml
--type-add=js=.js.erb
--type-add=css=.sass
--type-set=cucumber=.feature
--ignore-dir=vendor
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=doc
--ignore-dir=coverage
@qrush
qrush / _gem
Created August 10, 2009 20:11 — forked from alexvollmer/_gem
#compdef gem gem1.9
gem_general_flags=("(-h --help)"{-h,--help}"[Get help on this command]"
"(-V --verbose)"{-V,--verbose}"[Set the verbose level of output]"
"(-q --quiet)"{-q,--quiet}"[Silence commands]"
"--config-file[Use this config file instead of default]:file:_files"
"--backtrace[Show stack backtrace on errors]"
"--debug[Turn on Ruby debugging]"
$nul_arg
)