Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Kurtis Rainbolt-Greene krainboltgreene

🏠
Working from home
Block or report user

Report or block krainboltgreene

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
@krainboltgreene
krainboltgreene / 1_numbers.io
Created Dec 13, 2012 — forked from anonymous/1_numbers.io
An introduction to programming.
View 1_numbers.io
15
-1
4.39010
View gist:2715634
{
 "guardian": {
   "email" : "jharris@tagfeed.mil",
   "relationship" : "Father",
   "name" : "Jason Murray",
   "phones_attributes": [
     { "number": "123-232-2342" },
     { "number": "123-232-2342" }
   ]
 }
View LIOSS.mdown

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.

View stateful.rb
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 Jan 15, 2012 — forked from perimosocordiae/forth.rb
A pure Ruby interpreter for Forth
View forth.rb
#!/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
View controller.rb
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 Aug 4, 2011
The ruby-lang.org downloads page
View downloads.markdown

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
View gist:1053062
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
View gist:1042755
module ApiHelper
require 'apic.rb'
require 'api_errors.rb'
include ApiErrors
#########################################
#######Validation Methods################
#########################################
def valid_request_before
@valid_fields = valid_request?(request)
View gist:945397
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", "/"
You can’t perform that action at this time.