Skip to content

Instantly share code, notes, and snippets.

View thedeeno's full-sized avatar

Dane O'Connor thedeeno

View GitHub Profile
require 'rubygems'
require 'rubygems/package'
require 'zlib'
require 'fileutils'
module Util
module Tar
# Creates a tar file in memory recursively
# from the given path.
#
#!/usr/bin/env ruby
Dir.chdir File.join(__FILE__, "../..")
unless ENV['EDITOR']
puts "No EDITOR found. Try:"
puts "export EDITOR=vim"
exit 1
end
unless ARGV.count == 2
@thedeeno
thedeeno / gist:5418000
Last active December 16, 2015 10:09 — forked from anonymous/gist:5417966
using UnityEngine;
using System.Collections;
public class scriptScreenMainMenu : MonoBehaviour
{
public Transform GameManagerSpawn;
private GameObject _gameManager;
private string[] _currentMenu;
private string[] _mainMenu;
private string[] _optionsMenu;
@thedeeno
thedeeno / deaf.rb
Last active December 11, 2015 11:08
counter = 0
while true
input = gets.chomp
if input == "BYE"
counter += 1
break if counter >= 3
else
counter = 0
end
@thedeeno
thedeeno / gource-multiple-repositories.sh
Created October 25, 2012 01:31 — forked from anonymous/gource-multiple-repositories.sh
Generates gource video out of multiple repositories.
#!/usr/bin/env bash
# Generates gource video (h.264) out of multiple repositories.
# Pass the repositories in command line arguments.
# Example:
# <this.sh> /path/to/repo1 /path/to/repo2
i=0
for repo in $*; do
# 1. Generate a Gource custom log files for each repo. This can be facilitated by the --output-custom-log FILE option of Gource as of 0.29:
logfile="$(mktemp /tmp/gource.XXXXXX)"
@thedeeno
thedeeno / sunspot.rb
Created March 15, 2012 04:43 — forked from thhermansen/sunspot.rb
Sunspot rspec helper file
#
# Put this in spec/support/
# Will use a sunspot stub session as default in all tests.
#
# To actually test the search you'll need something like:
# describe "something", sunspot: true do
# ...some tests...
# end
#
# If you do this in your spec helper:
var today_date:Date = new Date();
//
var date_Day:Number = (today_date.getDate());
var date_Month:Number = (today_date.getMonth()+1);
var date_Year:Number = (today_date.getYear());
//
//
// ( 8/21 - 10/31 ) …this fall
if ((date_Month>=8) and (date_Month<=9)) {
if ((date_Day>=21) and (date_Day<=31)){
# encoding: utf-8
source :gemcutter
source 'http://gems.github.com'
# Rails 2.x style.
group :rails do
gem 'rails', '~> 2.3.5', :require => nil
gem 'builder', '~> 2.1.2'
gem 'memcache-client', '>= 1.7.4', :require => nil
gem 'tzinfo', '~> 0.3.12'