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 / gist:868032
Last active Sep 25, 2015
Some early Dragon writings
View gist:868032

Red Dragon: The Syntax & Use Of

As you may have heard Red Dragon is a simple procedural imperative DSL programming language. What does that mean? It means that RD is particularly good at being a learning language. It can, with practice, do some pretty smart things but prides itself on being easy to learn.

Basic Values: Numbers & Text

Red Dragon has two basic values:

View gist:916196
HTML5
html lang: 'en', class: 'no-js' do
head do
title "A great page."
meta {charset: 'utf-8'}
meta content: 'en', name: 'language'
keywords = ['magic the gathering', 'deck building', 'card trading', 'play magic', 'trade magic', 'trading card game']
meta content: keywords.join(', ')
htmlif 'IE' do
View gist:924766
/*
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
*/
[
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+o"], "command": "prompt_open_file" },
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["super+n"], "command": "new_file" },
View gist:945350
def show
@invite = Tablevite.find(params[:id])
@event = Event.find(params[:event_id])
render event_path(@event)
end
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", "/"
View gist:951221
#= Key Bindings
unbind-key -a
set-option -g prefix "`"
bind-key "`" send-prefix
## bind-key C-M-c new-server
bind-key C-c new-session
## bind-key M-c new-pane
bind-key c new-window
View gist:952775
class UserMailer < ActionMailer::Base
default :from => "justin@dreamstill.com"
def registration_confirmation(user)
@signed_user = user
mail(:to => user.email, :subject => "DreamStill Confirmation")
end
def email(user)
@signed_user = user
View gist:958208

Rubinius: Ruby Harder

Rubinius is an implementation of the Ruby programming language, in Ruby!

Rubinius includes in it's core:

  • A bytecode virtual machine
  • A parser
  • A bytecode compiler
View gist:958299

Rubinius: Ruby Harder

Rubinius is an implementation of the Ruby programming language, in Ruby!

Rubinius includes in it's core:

  • A bytecode virtual machine
  • A parser
  • A bytecode compiler
View gist:958306

Rubinius

Rubinius is an implementation of the Ruby programming language, in Ruby!

Rubinius includes in it's core:

  • A bytecode virtual machine
  • A parser
  • A bytecode compiler
You can’t perform that action at this time.