Skip to content

Instantly share code, notes, and snippets.

@freqn
freqn / heroku_to_github.txt
Created November 18, 2017 01:06 — forked from alterisian/heroku_to_github.txt
How to git your existing heroku app into a new github repo
git remote add github [EMAIL PROTECTED]:myaccount/myapp.git
git remote add heroku [EMAIL PROTECTED]:myapp.git
Then you can do “git push heroku” and “git push github”, or pull, or
From: http://blog.mindtonic.net/using-github-and-heroku-together
@freqn
freqn / turn.rb
Created April 10, 2017 19:12 — forked from AJFaraday/turn.rb
Example usage pattern
# Previous example in github.com/ajfaraday/re-rpg in script/simple_battle.rb
character.actions
# [:attack, :fire, :block, :heal, :"full heal"]
character.action(:attack, target)
# purely hypothetical, mostly unimplemented
20:10:13 238 but it missed.
20:10:13 238 Alice attacks Bob
20:10:13 238 it has no effect.
20:10:13 238
20:10:13 238 ["Alice: 10", "Bob: 10", "Charlie: 10"]
20:10:13 238
20:10:13 238 but it missed.
20:10:13 238 Bob attacks Charlie
20:10:13 238 it has no effect.
20:10:13 238