This requires you to have a few things:
- A Mac
- An iPhone
- A US Cell Phone Number
- Handoff Enabled on Your Mac/iPhone
- A generous text message plan
# ./app/assets/javascripts/app.js.coffee | |
@App ||= {} | |
# ./app/assets/javascripts/app/view.js.coffee | |
class @App.View | |
@where: (params = { controller: null, action: null }) -> | |
controller = @_parseClassName(params.controller) | |
action = @_parseClassName(params.action) | |
try |
require 'open-uri' | |
require 'json' | |
## | |
# Add underscore method to string for simple JSON | |
# key manipulation. | |
class String | |
def underscore | |
self.gsub(/::/, '/'). |
TWITTER_CONSUMER_KEY="" | |
TWITTER_CONSUMER_SECRET="" | |
TWITTER_SEARCH_STRING="#tedc15 -rt" |
input = File.open('./input.txt').read.strip | |
class RecursiveString < String | |
def [](i) | |
if i >= length | |
super(i - length) | |
else | |
super(i) | |
end | |
end |
-- Platformer Engine | |
-- by @kevinthompson | |
-- adapted from @enichan's platformer https://github.com/Enichan/Pico8Platformer | |
platformer={ | |
config={ | |
logfile="log", | |
precision=1, | |
tilesize=8, |
-- highscore | |
-- by @kevinthompson | |
_hs_chars="abcdefghijklmnopqrstuvwxyz " | |
_hs_max_records=10 | |
_hs_record_bytesize=5 | |
_hs_records={} | |
_hs_char_index=function(char) | |
for i=1,#_hs_chars do |
I've moved this to its own repo here: https://github.com/kevinthompson/godot-generate-polygon-from-sprite-tool. Original gist is below.
A simple shader that takes a 1px tall png as a palette uniform (as you might download from lospec.com) and enforces that palette in screen space when applied to a ColorRect
.