If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:
var component = <Component foo={x} bar={y} />;
Mutating Props is Bad, mkay
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */ | |
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */ | |
var dbg = (typeof console !== 'undefined') ? function(s) { | |
console.log("Readability: " + s); | |
} : function() {}; | |
/* | |
* Readability. An Arc90 Lab Experiment. | |
* Website: http://lab.arc90.com/experiments/readability |
Giving credit to Philip brown of Culttt | |
at http://culttt.com/2013/06/17/setting-up-vagrant-with-laravel-4/ | |
Do not include this file. | |
Just use the two below and run vagrant provision |
Redirect::route('route_name', options) //redirects you to a named route with options as an array |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
/*Note that this is not regular css, we are using scss*/ | |
.logo-image{ | |
/*Put easing and time duration here*/ | |
-webkit-transition: all 0.5s ease-in-out; | |
-moz-transition: all 0.5s ease-in-out; | |
-o-transition: all 0.5s ease-in-out; | |
-ms-transition: all 0.5s ease-in-out; | |
&:hover{ |
Ruby on Rails Useful Commands | |
//Make sure you have ruby installed to be able to run these commands | |
gem install rails -------- This installs rails for you | |
gem install rails-api -------- This installs rails api gem for creating a restful api oriented app | |
rails new appName -------- Creates a new rails application in the | |
folder with the same name as the app |
//***************** Useful Command Line Commands ***********// | |
MAC PC | |
Ctrl(Control) + a -------- Move to the beggining of the current command | |
Ctrl(Control) + e -------- Move to the end of the current command | |
echo ~ -------- print out our home directory | |
clear -------- cleans out your terminal of all previous commands |