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
View activity_schema.md

An activity has an actor, subject, proprietor, domain, and listeners. Sometimes an activity has a supersubject, superproprietor, superdomain

View BSQL
// Select
FROM users
WHERE name LIKE '.+urtis'
// Insert
TO users
SET name: 'kurtis'
// Update
IN users
View contract.html
<!DOCTYPE html>
<html lang="en">
<head>
{% include meta.html %}
<link href="/normalize.css" rel="stylesheet">
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
View KType.js
// : String
const name = "Kurtis Rainbolt-Greene"
// : Array of String
const friends = [
"Jack",
"Jill"
]
// : String -> Boolean
View 0_create_accounts.js
export default (schema) => {
return {
...schema,
accounts: {
columns: {
id: {type: "uuid", primary: true, defaultTo: "uuid4"},
fullName: {type: "text", nullable: false, defaultTo: "", index: true},
email: {type: "text", nullable: false, unique: true},
active: {type: "boolean", nullable: false, defaultTo: false}
}
View Dockerfile
AUTHOR "Kurtis Rainbolt-Greene <me@kurtisrainboltgreene.name>"
ISO boot2docker
MACHINE mythoas
CONTAINER api
FROM ubuntu:latest
LINK postgres:database
LINK memcached:cache
@krainboltgreene
krainboltgreene / gist:6237642
Last active Dec 21, 2015
A dragon code example
View gist:6237642
# Lets first create a new type of `Object`, the `Record`.
# It's a type of `Object`, so we clone the behavior from `Object`.
Record: Object clone
# Every Object has a build method that gets called in `Object#clone`.
# Think of it as a way to setup your fresh new object.
# It should always be assigned a method.
build: method
# Every method gets it's own set of bindings object
# On instantiation of the method object all of the arguments get assigned
# to the bindings object.
@krainboltgreene
krainboltgreene / gist:6215538
Last active Dec 20, 2015
Early Dragon ERBN
View gist:6215538
space = "\s" | "\t";
newline = "\n" | "\r";
white space = { space | newline };
upper letter = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z";
lower letter = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
letter = upper letter | lower letter;
symbol = "." | "?" | "!"| '"' | "'" | "," | "_" | "@" | "$" | "%" | "^" | "&" | "/" | "\" | "`" | "~" | "-" | "|" | "=" | "*" | "<" | ">" | "+";
@krainboltgreene
krainboltgreene / gist:6210880
Last active Dec 20, 2015
A dragon example
View gist:6210880
Range: Object clone
sort: method
compare: method
a <=> b
compare(a: a, b: b) <=> compare(a: a, b: b)
@krainboltgreene
krainboltgreene / gist:6210555
Last active Dec 20, 2015
Some dragon stuff
View gist:6210555
space = "\s" | "\t";
newline = "\n" | "\r";
white space = { space | newline };
upper letter = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z";
lower letter = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
letter = upper letter | lower letter;
symbol = "." | "?" | "!"| '"' | "'" | "," | "_" | "@" | "$" | "%" | "^" | "&" | "/" | "\" | "`" | "~" | "-" | "|" | "=" | "*" | "<" | ">" | "+";
You can’t perform that action at this time.