Skip to content

Instantly share code, notes, and snippets.

View geekygrappler's full-sized avatar

Andy Brown geekygrappler

View GitHub Profile
@geekygrappler
geekygrappler / gist:7640861
Created November 25, 2013 12:59
Terminal list command
ls
@geekygrappler
geekygrappler / gist:7642796
Created November 25, 2013 15:16
cd up one level
cd ..
@geekygrappler
geekygrappler / gist:7642845
Created November 25, 2013 15:19
make directory
mkdir Tutorial
@geekygrappler
geekygrappler / gist:7642853
Created November 25, 2013 15:19
Print working directory
pwd
class UserMailer < ActionMailer::Base
add_template_helper(UsersHelper)
default from: "[email protected]"
def recommendations_email user
@user = user
# We have 3 cases
# 1. User doesn't have any subscriptions (they may have associated their pocket though?)
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<input type="text" id="new-todo" placeholder="What needs to be done?" />
</header>
<section id="main">
<ul id="todo-list">
<li class="completed">
<input type="checkbox" class="toggle">
<section id="todoapp">
<header id="header">
<h1>todos</h1>
</header>
{{outlet}}
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.resource('todos', { path: '/' });
});
<input type="text" id="new-todo" placeholder="What needs to be done?" />
<section id="main">
<ul id="todo-list">
<li class="completed">
<input type="checkbox" class="toggle">
<label>Learn Ember</label><button class="destroy"></button>
</li>
<li>
<input type="checkbox" class="toggle">
import DS from 'ember-data';
export default DS.Model.extend({
title: DS.attr('string'),
isCompleted: DS.attr('boolean')
});