Skip to content

Instantly share code, notes, and snippets.

Will Hankinson SimianLogic

View GitHub Profile
View pack_simulator.rb
class Array; def sum; inject( nil ) { |sum,x| sum ? sum+x : x }; end; end
class Array; def mean; sum / size; end; end
class Ungoro
attr_accessor :packs, :completion
attr_accessor :nice_packs
attr_accessor :pity_timer
@SimianLogic
SimianLogic / DAMultilineLabelNode.swift
Last active Feb 16, 2016
a swift port of https://github.com/downrightsimple/DSMultilineLabelNode, minus the MacOS support (only needed iOS)
View DAMultilineLabelNode.swift
//
// DAMultilineLabelNode.swift
//
// Created by Will Hankinson on 9/10/15.
//
// Ported from https://github.com/downrightsimple/DSMultilineLabelNode
// an Obj-C version of the same thing
//
//
// Main quirk is that you must add it to the scene for it to grab the scene bounds
@SimianLogic
SimianLogic / BaseModel.cs
Last active Mar 20, 2018
Use Google Spreadsheets as a CMS for Your Unity Game
View BaseModel.cs
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
public abstract class BaseModel<T> where T : BaseModel<T>
{
private static bool SHOW_DEBUGGING_MESSAGES = false;
@SimianLogic
SimianLogic / rubymotiondebug.py
Created Sep 21, 2012
copy SublimeRubyMotionBuilder breakpoints to the root of a RubyMotion project and format them for RM's gdb
View rubymotiondebug.py
class RubyMotionDebug(sublime_plugin.WindowCommand):
def run(self, options=""):
view = self.window.active_view()
if not view:
return
dir_name = FindRubyMotionRakefile(os.path.split(view.file_name())[0])
if dir_name:
#COPIES BREAKPOINTS (REQUIRES GDB... PROBABLY A CLEANER WAY TO DO THIS)
You can’t perform that action at this time.