Skip to content

Instantly share code, notes, and snippets.

View jhoff's full-sized avatar

Jordan Hoff jhoff

  • Givebutter
  • Fort Collins, CO
View GitHub Profile
@jhoff
jhoff / todo.md
Created September 15, 2012 15:44
Resized Hawkthorne To-do

Resized Hawkthorne To-Do list

  • Ceiling tiles in study room
    • ( need help from designer )
  • Black Cavern black tiles when falling
  • Blackjack camera in fullscreen
  • Update house with new expanded tmx
  • Credits offset adjustment
  • Back from fullscreen stretch
  • Character Selection reset bounce position
@jhoff
jhoff / mallet.lua
Created October 17, 2012 20:33 — forked from NimbusBP1729/weaponParentChild.lua
weapon parent/child hierarchy
--This is a snippet of a Mallet file
local Weapon = require 'weapon'
function Mallet.new(node, collider)
local mallet = Weapon.new(node, collider)
setmetatable(mallet, Mallet)
-- setup your mallet specific code
@jhoff
jhoff / abed.lua
Created November 3, 2012 04:16
Proposal for new Character / Costume reorganization
return {
name = 'abed',
offset = 5,
ow = 7,
costumes = {
{name='Abed Nadir', sheet='base'},
{name='Alien', sheet='alien'},
{name='Batman', sheet='batman'},
{name='Bumblebee', sheet='bee'},
-- {name='Cooperative Calligraphy', sheet='bottle'},
@jhoff
jhoff / debugger.patch
Created November 7, 2012 07:37
Debugger Patch for JttCoH
diff --git a/src/debugger.lua b/src/debugger.lua
new file mode 100644
index 0000000..59da4aa
--- /dev/null
+++ b/src/debugger.lua
@@ -0,0 +1,54 @@
+local List = require 'list'
+local window = require 'window'
+
+local Debugger = { on=true }
@jhoff
jhoff / jshint-install.sh
Created December 10, 2012 18:22 — forked from dclowd9901/jshint-install.sh
jshint-install
#!/bin/sh
USERNAME=$(id -un)
if [ $(uname) = 'Darwin' ]; then
SUBL_PATH=/Users/$USERNAME/Library/Application\ Support/Sublime\ Text\ 2/Packages
else
SUBL_PATH=/home/$USERNAME/.config/sublime-text-2/Packages
fi
@jhoff
jhoff / gist:4313993
Created December 16, 2012 23:04
PHP js_log - object inspector
function js_log() {
foreach(func_get_args() as $obj) {
if( gettype($obj) != 'resource' ) {
echo "<script>console.log(" . json_encode($obj) . ");</script>";
}
}
}
@jhoff
jhoff / gist:4472665
Last active December 10, 2015 18:08
freemarker vardump for javascript
<#macro vardump v>
<script>
var method = function(){},
transform = function(){},
macro = function(){},
hash_ex = function(){},
hash = function(){},
sequence = function(){},
collection = function(){},
directive = function(){},
@jhoff
jhoff / gist:4965700
Created February 16, 2013 05:42
Fixing a diverged master branch
# This is the easiest way to "reset" your master branch if you've jacked it up
# 1) Make sure you have a clean working directory
git status
# 2) Create a new temporary branch
git checkout -b temp_branch
# 3) Push the new temp_branch to github
@jhoff
jhoff / gist:7348912
Last active December 27, 2015 15:39
Sample json data for positionTracker
{
"studyroom-0.0.0": [
"156,237,1,idle",
"156,237,1,idle",
"156,237,1,idle",
"156,237,1,idle",
"156,237,1,idle",
"157,237,1,walk",
"164,237,1,walk",
"178,237,1,walk",
@jhoff
jhoff / md5.js
Created November 27, 2013 18:27
Closure of Joseph's Myers md5 javascript implementation
/*
* http://www.myersdaily.org/joseph/javascript/md5-text.html
*/
(function() {
var md5cycle = function(x, k) {
var a = x[0], b = x[1], c = x[2], d = x[3];
a = ff(a, b, c, d, k[0], 7, -680876936);