Skip to content

Instantly share code, notes, and snippets.

View boxxxie's full-sized avatar
👙
disrupting absurdism

Paul Iannazzo boxxxie

👙
disrupting absurdism
View GitHub Profile
@boxxxie
boxxxie / jruby fail.sh
Last active December 17, 2015 05:18
jruby $(which bundle) output
jruby $(which gem) install bundler
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
from DefaultResolver.java:111:in `makeTime'
from DefaultResolver.java:277:in `create'
from DefaultResolver.java:317:in `handleScalar'
from DefaultResolver.java:435:in `orgHandler'
from DefaultResolver.java:455:in `node_import'
from org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER$node_import.gen:65535:in `call'
@boxxxie
boxxxie / hashmap.rb
Last active December 17, 2015 05:09
hash map of hash keys in ruby
irb(main):205:0> a
{{1 => 5} => 2}
irb(main):206:0> a.put ( Hamster.hash (3 => 3) , 3)
SyntaxError: (irb):206: syntax error, unexpected tASSOC, expecting ')'
a.put ( Hamster.hash (3 => 3) , 3)
^
from /usr/bin/irb:12:in `<main>'
a.put { Hamster.hash (3 => 3) , 3}
SyntaxError: (irb):207: syntax error, unexpected tASSOC, expecting ')'
@boxxxie
boxxxie / cs2cs.sh
Last active December 17, 2015 00:09
wtf cs2cs has the stupidest api ever
echo 620680.98 4828301.47 | cs2cs -v +proj=utm +datum=NAD27 +zone=17 +to +proj=latlong +datum=WGS84 -f "%.6f"
;;rules examples
[[(findname ?person ?search) [(fulltext $ :person/firstname ?search) [[?person ?name]]]]
[(findname ?person ?search) [(fulltext $ :person/lastname ?search) [[?person ?name]]]]]
;;attempt at making some rule for searching for geohashs...
[[(findgeohash ?place ?search)
[(fulltext $ :coordinate/gehoash ?search)
[[?place ?name]]]]]
(defn pythagorean [a b c] (= (+ (* a a) (* b b)) (* c c)))
@boxxxie
boxxxie / gist:5240921
Created March 25, 2013 21:27
parks and rec stats
FacilityDisplayName stats
1 Farm Display
2 Skateboard Park
3 Curling Rink
4 Gallery
4 Stadium
5 Amphitheatre
6 Coat Check Room
6 Games Room
@boxxxie
boxxxie / gist:5229115
Last active December 15, 2015 08:09
deepzoom plunkr
http://plnkr.co/edit/fvD0FZBr81dtq3bjY15o?s=MJhcYoHefpn9524Z
@boxxxie
boxxxie / mandelbrot plunkr
Created March 22, 2013 01:22
mandelbrot plunkr
http://plnkr.co/edit/BrzHQHvk4sA9cUGzWrlA?p=preview
@boxxxie
boxxxie / google chart directive plunkr
Created March 19, 2013 18:39
google chart directive plunkr
http://plnkr.co/edit/Rx2ifzPucXLEnRE7IoKp?p=streamer&s=qw15iMFWL7Io64UA
@boxxxie
boxxxie / plunkr.something
Created March 12, 2013 23:25
isotope stream plunkr
http://plnkr.co/edit/b:angularjs@1.1.x+starter-angularjs?p=streamer&s=jzJCeGCDiB40mX4h
Application.Controllers
.controller('display'
, ['_'
,'$scope'
,'places'
, function(_,$scope,places){
$scope.model = {
places:places,
places_by_type:_.groupBy(places,'type')