This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var sFoo = “bar”; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var foo = “bar”; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Foo = function() { | |
| var bar = “baz”; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Foo = function() { | |
| var _bar = “baz”; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bar = "Baz"; | |
| foo(); // => Hello Baz | |
| function foo() { | |
| console.log("Hello " + bar); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bar = “Baz”; | |
| foo(); // => TypeError: undefined is not a function | |
| var foo = function() { | |
| console.log(“Hello ” + bar); | |
| }; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| when coping all files and folders, use cp -R <current_directory> <new_directory> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| control + command + up/down moves an entire line | |
| hold command and click multiple times for multiple cursors | |
| command T can create a new tab from a file | |
| command P jumps to search text in a file | |
| commmand shift F searches entire app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Fresh App Stuff | |
| rails new myapp --database=postgresql -T | |
| ## Gemfile add: rspec, factory_girl, capybara, bcrypt | |
| gem 'rspec-rails', '~> 3.0' | |
| ## Delete all references to turbolinks | |
| Bundle | |
| rails g rspec:install | |
| # Testing |