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
# Example ~/.rvmrc file.
#
# This file shows some examples of setting defaults to your own tastes.
#
# If you wish to adjust the default ruby interpreter/version/patchlevel
# settings they can be found in the $rvm_path/config/db file.
# Beware that currently that file is overwritten on install so
# back it up if you change anything.
#
#!/usr/bin/env bash
# This is an RVM Project .rvmrc file, used to automatically load the ruby
# development environment upon cd'ing into the directory
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
environment_id="ruby-1.8.7-p330@deck"
#
# First we attempt to load the desired environment directly from the environment
sh "mkdir " + project_name
case type
when :sinatra
sh "create " + project_name
end
sh "cd " + project_name
sh "git init"
sh "git remote add origin [email protected]:krainboltgreene/" + project_name + ".git"
sh "create"
sh "rvm --create --rvm 1.9.2@" + project_name
3 %p#introduction
4 :markdown
5 Welcome to the site devoted to information about the Dragon Language.
6 The Dragon Language is a [Stack-style](), [Object-oriented](), and [Dynamically-typed]() [programming language]().
7 The Dragon Language was heavily influenced by [Forth](), [Joy](), [LISP](), and [forked from Factor]().
8 The Dragon Language is intended as a programming language that is easy to jump into and learn about.
9 The language's principles also happen to encompase many other Stack-style languages, making them easier as well.
10 Dragon Language is Open Source, under the BSD License.
└─▪ irb
>> i
NameError: undefined local variable or method `i' for #<Object:0xb7721958>
from (irb):1
>> i == i
NameError: undefined local variable or method `i' for #<Object:0xb7721958>
from (irb):2
>> i == i = i
NameError: undefined local variable or method `i' for #<Object:0xb7721958>
from (irb):3
└─▪ rails generate
/home/krainboltgreene/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing': uninitialized constant Koala (NameError)
from /home/krainboltgreene/.rvm/gems/ruby-1.9.2-p136@global/gems/rspec-core-2.5.1/lib/rspec/core/backward_compatibility.rb:20:in `const_missing'
from /home/krainboltgreene/.rvm/gems/ruby-1.9.2-p136@global/gems/rspec-expectations-2.5.0/lib/rspec/expectations/backward_compatibility.rb:6:in `const_missing'
from /home/krainboltgreene/Dropbox/Public/Repositories/rb/decktap/config/initializers/koala.rb:11:in `<top (required)>'
from /home/krainboltgreene/.rvm/gems/ruby-1.9.2-p136@decktap/gems/railties-3.0.4/lib/rails/engine.rb:201:in `block (2 levels) in <class:Engine>'
from /home/krainboltgreene/.rvm/gems/ruby-1.9.2-p136@decktap/gems/railties-3.0.4/lib/rails/engine.rb:200:in `each'
from /home/krainboltgreene/.rvm/gems/ruby-1.9.2-p136@decktap/gems/railties-3.0.4/lib/rails/engine.rb:200:in `block in <class:Engine>'
from /home/krainboltgreene/.rv
cat app/views/pages/home.rb
class Pages::Home < Mustache::Rails
end
module ApplicationHelper
def keywords
# List of keywords relevent to SEO.
keywords = ['magic the gathering','deck building']
# Join the keywords so they're in a string.
keywords.join(', ')
end
/home/krainboltgreene/.rvm/gems/ruby-1.9.2-p180@log/bin/rackup:19:in `load': no such file to load -- /home/krainboltgreene/.rvm/gems/ruby-1.9.2-p180@log/gems/rack-1.2.1/bin/rackup (LoadError)
from /home/krainboltgreene/.rvm/gems/ruby-1.9.2-p180@log/bin/rackup:19:in `<main>'
@krainboltgreene
krainboltgreene / gist:865336
Last active September 25, 2015 04:47
Notes on dragon's type system
number:
1
-1
1.0
1.5e10
400_000.40
string:
"Hello, world!"
list:
( 1, 2, 3, 4, 5 )