Skip to content

Instantly share code, notes, and snippets.

View criscokid's full-sized avatar

Ryan Farnell criscokid

View GitHub Profile
@criscokid
criscokid / tag.rb
Last active August 29, 2015 14:15 — forked from honorelsu/tag.rb
require 'CSV'
input_path = ARGV[0]
output_path = ARGV[1]
output_array = Array.new
regex = /^([a-zA-Z]*).*$/
#class
@criscokid
criscokid / compare.rb
Last active August 29, 2015 14:12 — forked from honorelsu/compare.rb
require 'CSV'
require 'easy_diff'
dcsexport = ARGV[0]
opsexport = ARGV[1]
def csv_to_hash(file_location)
result = {}
CSV.foreach(file_location) do |row|
results[row.values[0]] = row
$('#states').html("")
try {
//some code
} catch(Exception e) {
//do nothing at all with e
}
jQuery.getJson('http://api.wunderground.com/api/dbed73bab6c58648/conditions/q/70506.json', function(data){
version = data.response.version
});
@criscokid
criscokid / AnimatableSprite.cs
Created October 29, 2012 17:49
Animatable Sprite for Futile
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class AnimatableSprite : FSprite {
private string _file;
private int _currentIndex;
private int _maxFrames;
private Animation _currentAnimation;
#tickets {
th, td { border:1px; }
}
@criscokid
criscokid / main.js
Created April 6, 2012 00:16
Twitter Bootstrap 2 Popover with icanhaz.js
$('myPopoverTarget').popover({
content: function() {
var html = ich.some_content({ foo: 'bar' }, true);
return html;
}
});
if (isset($_GET["buildingid"))
echo $_GET["buildingid"];
@criscokid
criscokid / test.js
Created July 20, 2011 03:46
TameJS Output Test
var tame = require('tamejs').runtime;
var __tame_fn_0 = function (__tame_k) {
var __tame_k_implicit = {};
var i = 0;
var __tame_fn_1 = function (__tame_k) {
var __tame_fn_2 = function (__tame_k) {
i ++
tame.callChain([__tame_fn_1, __tame_k]);
};
__tame_k_implicit.k_break = __tame_k;