This is my "go to" margarita because of the ease of preparation and the simplicity of ingredients.
1oz orange liqueur, 2oz tequila, 3oz limeade, 1/2 lime, shaken with ice.
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
{ | |
"app/adapters/*.js": { | |
"command": "adapter", | |
"template": [ | |
"// export default DS.{capitalize}Adapter.extend();", | |
] | |
}, | |
"app/components/*.js": { | |
"command": "component", |
Data Down / Actions Up
Plain JSBin's
Ember Version Base JSBin's
<?php | |
$api_key = ""; | |
$subdomain = ""; | |
$handle = curl_init('https://'.$subdomain.'.chargify.com/customers/100000.json'); | |
curl_setopt($handle, CURLOPT_USERPWD, $api_key . ":x"); | |
curl_setopt($handle, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); | |
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); | |
$response = curl_exec($handle); |
#!/usr/bin/env ruby | |
trap("INT") { puts "\ncatch'ya later"; exit 0 } | |
output = `git for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(refname:short)'` | |
branches = output.split("\n") | |
unless option = ARGV[0] | |
puts <<-MSG |
#include <stdlib.h> | |
#include <stdio.h> | |
#define too goto | |
int main( int argc, const char* argv[]) { | |
int times; | |
times = 0; | |
legit: | |
printf(" too legit,"); |
$cucumber_instance_variables = [] | |
Before do | |
$cucumber_instance_variables = instance_variables | |
end | |
After do | |
test_variables = instance_variables - $cucumber_instance_variables | |
message = "[WARN] the following test variables could be leaking #{leaked_variables.join(', ')}" |
include ActionDispatch::Routing | |
include Rails.application.routes.url_helpers |
WARNING
This gist is outdated! For the most up-to-date information, please see http://emberjs.com/guides/routing/!
An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars
.
<header>