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:5990041
Last active December 19, 2015 17:19
A dragon thing
Robot: Thing clone
greeting: method
"Hello, {{name}}" interpret line print
johnny5: Robot clone
johnny5 greeting(name: "Kurtis") # "Hello, Kurtis\n"
As a hacker
I want to sign up for an account so I can submit and like content
I want to sign in to my account so that I can manage my account and submit content
I want to submit a link so that I can discuss it with my peers
I want to submit content so that I can discuss it with my peers
I want to comment on discussions so that I can voice my opinion
I want to like content so that they get seen by others
I want to flag content so that they don't get seen by others
I want to detail why I flagged a link so the submitter knows why I flagged
I want to tag content so that it gets categorized correctly

Control:

  • Receives raw unserialized data
  • Passes the unserialized data and a context to the proper Model
  • Prepares the proper type of Presenter with that Model Model:
  • Recieves unserialized and context
  • Validates the unserialized data based on the context
  • Serializes the validated data
  • Passes serialized validated data and context to the Store Store:
Account ->
CreateControl clone() ->
mimics(Controls)
setup: method(email, password, remember: false) ->
account: Account Model build(email: email, password: password)
if(account save()) ->
session remember(remember)
Account ShowControl pass(account: account)
else ->
Account ->
attributes("name", "password")
setup: method(name, password) ->
name(name)
password(password)
tweets: method ->
Twitter get_tweets name: name, password: password
account: Account make(name: "krainboltgreene", password: "12341234")
@krainboltgreene
krainboltgreene / 1_numbers.io
Created December 13, 2012 09:38 — forked from anonymous/1_numbers.io
An introduction to programming.
15
-1
4.39010
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Absolvte</title>
<meta name="description" content="">
mkdir -p github-client/application/libraries
mkdir github-client/application/models
mkdir github-client/application/controllers
mkdir github-client/application/presenters
mkdir github-client/application/templates
mkdir -p github-client/scripts/vendor
mkdir -p github-client/styles/vendor
mkdir github-client/images
mkdir github-client/fonts
touch github-client/application/application.js

Ember.js Guide To A Client App

Setup

  1. Install & Setup a web server (I recommend http://pow.cx)
  2. Create a directory for your application (I'll be using github-client)
  3. Create the below directory structure (script: curl http://git.io/DBLtXw | sh):
  - github-client
@ashedryden
ashedryden / gist:3969567
Created October 28, 2012 19:22
Ashe's hair dyeing proces

I, personally, have a salon bleach any hair that I am going to be dyeing over. They know what they're doing more than me so I won't have broken, damaged hair and bleaching it means that the color will be much more bright and last longer.

Prep

I have just a small section of hair to dye (right now it's just the front part of my hair, but I will be bleaching + dyeing the underside next month), I am able to do all of this myself.

You will need: