Skip to content

Instantly share code, notes, and snippets.

java.lang.NullPointerException
	at scripts.minigame.SlotMachineSpinLayer$Cylinder.<init>(SlotMachineSpinLayer.scala:38)
	at scripts.minigame.SlotMachineSpinLayer$$anonfun$2.apply(SlotMachineSpinLayer.scala:97)
	at scripts.minigame.SlotMachineSpinLayer$$anonfun$2.apply(SlotMachineSpinLayer.scala:97)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.immutable.Range.foreach(Range.scala:141)
	at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
	at scala.collection.AbstractTraversable.map(Traversable.scala:105)
@tcoxon
tcoxon / Kirigami-Bird-Generator.md
Last active July 13, 2017 22:31
Kirigami Bird Generator

TODO

@tcoxon
tcoxon / Kirigami-Generator.md
Last active June 28, 2023 20:09
Default Kirigami beast generator configuration - http://bytten-studio.com/kirigami/

TODO

#!/usr/bin/perl
use CGI":standard";chdir($0=~s~[^/]*$~~);import_names("x");while($x::t){open$f,">$x::t.r";print$f "$x::l$/$x::v$/".($x::i?$x::i:localtime);close$f;CGI::delete(split(//,~~tlvi));$x::t=0}@r=$x::s?<*$x::s*.r>:<*.r>;print header,start_html,start_form,textfield(-name=>'s',-value=>"search"),submit,end_form,start_form,textfield(-name=>~~t,-value=>"title"),textfield(-name=>~~l,-value=>"link"),hidden(-name=>v,-value=>0),submit,end_form,ul li([sort{$s=sub{$_=$_[0];s~<.*?>~~g;$_};$s->($b)cmp$s->($a)}map{open$f,$_;@a=<$f>;chomp@a;m/(.*)\.r/;(a{href=>"?t=$1&l=$a[0]&i=$a[2]&v=".($a[1]+1)},"^").$a[1].(a{-href=>"?t=$1&l=$a[0]&i=$a[2]&v=".($a[1]-1)},"v")." ".(a{-href=>$a[0]},$1).br.small"added: ".$a[2]}@r]),end_html
# Note: you may need to chmod the directory containing the script to 777.
# Warning: DO NOT host on a public website. It will open up all sorts of nasty security holes.