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
| # A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis) | |
| # Check our Studio: https://gentlenode.com/ | |
| meteor add iron:router | |
| meteor update iron:router | |
| # Iron Router > Configuration |
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
| Post.findOne() // returns obj | |
| Post.findOne({_id: id, title: 'Hello world!'}) | |
| Post.find() // returns cursor - finds all posts | |
| Post.find({title: "Hello World!"}) | |
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
| <snippet> | |
| <content><!--[CDATA[ | |
| Hello, ${1:this} is a ${2:snippet}. | |
| ]]--></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <!-- <tabTrigger>hello</tabTrigger> --> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <!-- <scope>source.python</scope> --> | |
| </snippet> |
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
| <snippet> | |
| <content><!--[CDATA[ | |
| assert_equal(${1:expected}, ${0:actual}) | |
| ]]--></content> | |
| <tabtrigger>ase</tabtrigger> | |
| <scope>source.ruby</scope> | |
| <description>assert_equal(..)</description> | |
| </snippet> |
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
| assert_equal(expected, actual) |
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
| <snippet> | |
| <content><!--[CDATA[ | |
| Hello, ${1} is a ${2:snippet}. ${0}, ${3} | |
| ]]--></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabtrigger>hello</tabtrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <!-- <scope>source.python</scope> --> | |
| </snippet> |
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
| [ | |
| { | |
| "keys": ["command+shift+."], | |
| "command": "insert_snippet", | |
| "args": {"name": "Packages/User/erb.sublime-snippet"} | |
| } | |
| ] |
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
| <snippet> | |
| <content><%= ${1} %></content> | |
| </snippet> |
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
| cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User | |
| touch Default\ \(OSX\).sublime-mousemap |
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
Show hidden characters
| [ | |
| { | |
| "button": "button1", | |
| "count": 1, | |
| "modifiers": ["super", "shift"], | |
| "press_command": "drag_select", | |
| "command": "goto_definition" | |
| } | |
| ] |