Skip to content

Instantly share code, notes, and snippets.

View iterion's full-sized avatar

Adam Sunderland iterion

View GitHub Profile
@iterion
iterion / idea.md
Last active January 2, 2016 12:49
Twitter Text Adventure Game Story Generation

Basic Idea

framework(user_data) -> story

Framework

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
require 'httparty'
require 'nokogiri'
require 'pry'
curr = {}
stats = nil
begin
res = HTTParty.get("http://www.xe.com/iso4217.php")
html = Nokogiri::HTML.parse(res)
links = html.css("#currencyTable td a").map { |a| a["href"] }.reject { |link| link[0] == "#" }
# 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
@iterion
iterion / spec.diff
Last active December 9, 2022 14:30
Remote OpenAPI Diff
4a5,44
> "ContractDetails": {
> "title": "ContractDetails",
> "nullable": true,
> "description": "Contract information. As its properties may vary depending on the country,\n you must query the [Show form schema](https://gateway.remote.com/eor/v1/docs/openapi.html#tag/Countries/operation/get_show_form_country) endpoint\n passing the country code and `contract_details` as path parameters."
> },
> "EmergencyContactDetails": {
> "title": "EmergencyContactDetails",
> "nullable": true,
> "description": "Emergency contact information. Its properties may vary depending on the country."