Cheat sheet extracted from https://www.youtube.com/watch?v=2zmUSoVMyRU by That JS Dude.
If you pass any of the CSS selectors to $(<identifier>) you get the first element.
> $('a')| MyComponent = React.createClass | |
| # give your component a DisplayName that is equal to it's file name. | |
| # it is helpful so you dont just see <<anonymous>> when react prints | |
| # warnings in the console or <Undefined> in the react inspector. | |
| displayName: 'MyComponent' | |
| # propTypes should be the second thing, after your DisplayName | |
| propTypes: | |
| # then put the rest of the react specific properties, in this order |
| namespace :db do | |
| namespace :migrate do | |
| desc "runs db:drop db:create db:migrate for both development and test environments" | |
| task :reset_all do | |
| system('bundle exec rake db:migrate:reset') | |
| system('bundle exec rake db:migrate:reset RAILS_ENV=test') | |
| end | |
| end | |
| end |
| <!doctype html> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="bower_components/qunit/qunit/qunit.css"> | |
| <div id="qunit"></div> | |
| <div id="qunit-fixture"></div> | |
| <script src="bower_components/jquery/jquery.js"></script> | |
| <script src="bower_components/handlebars/handlebars.js"></script> | |
| <script src="bower_components/ember/ember.js"></script> |
Cheat sheet extracted from https://www.youtube.com/watch?v=2zmUSoVMyRU by That JS Dude.
If you pass any of the CSS selectors to $(<identifier>) you get the first element.
> $('a')| web: bundle exec unicorn -c vendor/plugins/zachp-local/unicorn.rb | |
| guard: bundle exec guard start --no-interactions | |
| job: bundle exec script/delayed_job run > /dev/null | |
| mail: bundle exec mailtrap run |
| $(document).ready(function() { | |
| //init tab history with default tab 'table' | |
| $(window).tabHistory('table'); | |
| }); |