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
# client/views/games.coffee | |
Template.games.helpers | |
games: -> Games.find() |
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
# server/fixtures.coffee | |
if Teams.find().count() == 0 | |
_([ | |
{name: 'Barcelona'} | |
{name: 'Manchester City'} | |
]).each (data) -> Teams.insert(data) | |
if Games.find().count() == 0 | |
game = { |
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
# lib/collections/games.coffee | |
@Games = new Mongo.Collection('games') |
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" | |
} | |
] |
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
<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
[ | |
{ | |
"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><!--[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
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[ | |
assert_equal(${1:expected}, ${0:actual}) | |
]]--></content> | |
<tabtrigger>ase</tabtrigger> | |
<scope>source.ruby</scope> | |
<description>assert_equal(..)</description> | |
</snippet> |