Skip to content

Instantly share code, notes, and snippets.

View krainboltgreene's full-sized avatar
🏠
Working from home

Kurtis Rainbolt-Greene krainboltgreene

🏠
Working from home
View GitHub Profile
@krainboltgreene
krainboltgreene / 1_numbers.io
Created December 13, 2012 09:38 — forked from anonymous/1_numbers.io
An introduction to programming.
15
-1
4.39010
{
 "guardian": {
   "email" : "jharris@tagfeed.mil",
   "relationship" : "Father",
   "name" : "Jason Murray",
   "phones_attributes": [
     { "number": "123-232-2342" },
     { "number": "123-232-2342" }
   ]
 }

Learn Io For Supreme Sorcery

Welcome to the simplest programming book in all the multiverses. In this book you'll learn how to program. Some people have accidentally learned how to program in Io at the same time. We take no responsibility for those incidents.

Through out this book you'll be introduced to the Io language and be building a Text Based Adventure. That's just a fancy word for "adventure computer game that uses text as the medium and the user has a large amount of control over what happens." Try saying it with your pinky raised and you'll sound pretty fancy.

require "overlord/searchable"
module Overlord
module Stateful
ANY = Object.new
def self.included(model)
model.validates :state, presence: true
model.extend Macro
@krainboltgreene
krainboltgreene / forth.rb
Created January 15, 2012 18:45 — forked from perimosocordiae/forth.rb
A pure Ruby interpreter for Forth
#!/usr/bin/env ruby
# Return and remove the last value of the stack array
def pop
$stack.pop || raise(StackUnderflow)
end
# Add a expression to the stack
def push(expression)
$stack << expression
class UsersController < ApplicationController
# GET /users
# GET /users.xml
def index
@users = User.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @users }
end
@krainboltgreene
krainboltgreene / downloads.markdown
Created August 4, 2011 18:22
The ruby-lang.org downloads page

Downloading Ruby

There are three ways to install Ruby on your platform:

  • Build with third party tools
  • Install from package management systems
  • Compile from source
Command failed: /rubyprograms/search --format jpg http://www.mtv.com/music/artist/lil_wayne/artist.jhtml -: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:67:in `exec': Permission denied - /rubyprograms/search (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:67:in `popen3' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:53:in `fork' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:53:in `popen3' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:51:in `fork' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:51:in `popen3' from /Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/lib/imgkit/imgkit.rb:77:in `to_img' from /rubyprograms/search/app/workers/image_generator.rb:6:in `perform' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/job.rb:127:in `perform' from /Library/Ruby/Gems/1.8
module ApiHelper
require 'apic.rb'
require 'api_errors.rb'
include ApiErrors
#########################################
#######Validation Methods################
#########################################
def valid_request_before
@valid_fields = valid_request?(request)
def show
@invite = Tablevite.find(params[:id])
@event = Event.find(params[:event_id])
render event_path(@event)
end
Missing template /events/4db86d7db6619e0837000004/tablevite/4db87206b6619e00d7000002 with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml, :haml], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=>[:en, :en]} in view paths "/Users/andreassaebjoernsen/tableslice.www/app/views", "/Users/andreassaebjoernsen/tableslice.www/vendor/plugins/cartographer/app/views", "/Users/andreassaebjoernsen/.rvm/gems/ruby-1.9.2-p180/gems/devise-1.3.3/app/views", "/Users/andreassaebjoernsen/tableslice.www", "/"