Skip to content

Instantly share code, notes, and snippets.

Adam Sunderland iterion

Block or report user

Report or block iterion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .tmux.conf
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-t
bind-key C-t send-prefix
# Set up reload key for tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"
unbind t
# Start at 1 rather than 0
View parse.rb
require 'httparty'
require 'nokogiri'
require 'pry'
curr = {}
stats = nil
res = HTTParty.get("")
html = Nokogiri::HTML.parse(res)
links = html.css("#currencyTable td a").map { |a| a["href"] }.reject { |link| link[0] == "#" }
# Description:
# Balls Response
# Commands:
# balls - Display a picture of balls
module.exports = (robot) ->
robot.hear /balls/i, (msg) ->
imageMe msg, "balls", (url) ->
msg.send url

Keybase proof

I hereby claim:

  • I am iterion on github.
  • I am iterion ( on keybase.
  • I have a public key whose fingerprint is C6F8 8F99 B19F 6CAF F184 7024 BA06 FC28 DDD1 5EE2

To claim this, I am signing this object:

iterion /
Last active Aug 29, 2015
Push your code to GitHub
  1. Go to (github)[] and create an account if you haven't already
  2. Create a new repository to for your app
  3. Click the green "New repository" button on the GitHub homepage once you've signed in
  4. Give your repository a name
  5. From the repositories page on GitHub copy the SSH Clone URL to your clipboard
  6. In your project directory in the terminal type: git remote add github <<clone url>>
  7. Now, you can push your code to github: git push github
iterion /
Last active Jan 2, 2016
Twitter Text Adventure Game Story Generation

Basic Idea

framework(user_data) -> story


The framework is an outline of a story or story elements that are basically a function of user_data. The framework at its simplest is a madlib that is randomly filled in with user data.

User Data

User data would probably include:

  • Name
Molecule.FeesMixin = Ember.Mixin.create
addFee: ->
trade = @get('content')
fee = @store.createRecord('fee', {
trade: trade,
name: "broker fee",
price: 5,
editing: true
iterion / encoding_fix.rb
Last active Dec 17, 2015
char encoding fix
View encoding_fix.rb
def try_invalid_char_fix file
temp ='fix_file'), "r").each_line do |line|
original_encoding =
new_line = line.encode('UTF-16', original_encoding, :invalid => :replace, :replace => '')
temp.write new_line.encode('UTF-8', 'UTF-16')
#make copy of the old file
iterion / document_perf.rb
Created May 15, 2013
mongoid document performance
View document_perf.rb
require 'benchmark'
require 'mongoid'
class FakeModel
attr_accessor :test1, :test2, :test3, :test4, :test5, :test6, :test7, :test8
def initialize
self.test1 = 1
self.test2 = 1
self.test3 = 1
self.test4 = 1
iterion /
Created Mar 26, 2013
hubot script to start tddium builds
# Description:
# What you do about Tddium. Utilities to start tddium sessions
# Also contains some utilities I used in debugging (primarily unstick and start)
# I think session listing and stopping of builds is broken
# Credit mostly due to reading Tddium's gems' source.
# Dependencies:
# "underscore": "1.4.4"
# Commands:
You can’t perform that action at this time.