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

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:

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
/*
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" },
def show
@invite = Tablevite.find(params[:id])
@event = Event.find(params[:event_id])
render event_path(@event)
end
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", "/"
#= 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
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

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

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

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