This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
└─▪ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
└─▪ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat app/views/pages/home.rb | |
class Pages::Home < Mustache::Rails | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number: | |
1 | |
-1 | |
1.0 | |
1.5e10 | |
400_000.40 | |
string: | |
"Hello, world!" | |
list: | |
( 1, 2, 3, 4, 5 ) |