Skip to content

Instantly share code, notes, and snippets.

#!/bin/ruby
require 'rubygems'
require 'bundler'
Bundler.setup(:default)
require 'srt'
file = SRT::File.parse(File.new(ARGV[0]))
outfile_name = File.basename(ARGV[0], '.srt') + '.txt'
#!/bin/sh
#
# init.d script for single or multiple resque installations. Expects at least one .conf
# file in /etc/resque
#
## A sample /etc/resque/my_app.conf
##
## RAILS_ROOT=/var/apps/www/my_app/current
#
# If you call this script without any config parameters, it will attempt to run the
@pavels
pavels / gist:1434610
Created December 5, 2011 18:09
Starling flatten fix and repeat fix
diff -ur starej//starling/core/QuadBatch.as novej//starling/core/QuadBatch.as
--- starej//starling/core/QuadBatch.as 2011-12-02 20:56:22.000000000 +0100
+++ novej//starling/core/QuadBatch.as 2011-12-05 18:54:51.000000000 +0100
@@ -9,7 +9,7 @@
import flash.display3D.VertexBuffer3D;
import flash.geom.Matrix3D;
import flash.utils.getQualifiedClassName;
-
+ import de.polygonal.ds.HashMap;
import starling.display.DisplayObject;