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
| tmpvar = setNumber | |
| try | |
| setNumber += 5 | |
| alert setNumber | |
| catch error | |
| alert error | |
| finally | |
| setNumber = tmpvar |
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
| family = | |
| mum: | |
| name: "Jane" | |
| age: 34 | |
| dad: | |
| name: "Jon" | |
| age: 37 | |
| son: | |
| name: "Mark" | |
| age: 12 |
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
| race = (winner, runners...) -> | |
| alert "The winner is: #{winner}. Others that ran were: #{runners}" | |
| race ["Adam","Mark","Luke","John"]... |
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
| class Step | |
| constructor: (@name) -> | |
| move: (meters) -> | |
| alert "Moving " + @name + " #{meters} steps" | |
| class SmallSteps extends Step | |
| move: -> | |
| super 5 | |
| class LargeSteps extends Step |
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
| <div class="container"> | |
| <a class="btn green" href="#">Button 1</a> | |
| <div class="options"> | |
| <a class="option1"></a> | |
| <a class="option2"></a> | |
| <a class="option3"></a> | |
| </div> | |
| </div> |
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
| /* SPRITE STYLES */ | |
| @import "snails/*.png"; | |
| @mixin sprite_css($name) { | |
| @include snails-sprite($name); | |
| height: snails-sprite-height($name); | |
| width: snails-sprite-width($name); | |
| } | |
| .options { | |
| .option1{ |
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
| Handlebars.registerHelper('fullName', function(person) { | |
| return person.firstName + " " + person.lastName; | |
| }); |
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
| {{#with contentSent.author}} | |
| <p>By {{firstName}} {{lastName}}</p> | |
| {{/with}} |
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
| {{#each contentSent.people}} | |
| <li>{{@index}} - {{this}}</li> | |
| {{else}} | |
| <li>No people to list</li> | |
| {{/each}} |
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
| {{#if contentSent.author}} | |
| <p>{{contentSent.author.firstName}} {{contentSent.author.lastName}}</p> | |
| {{else}} | |
| <p>Unknown Author</p> | |
| {{/if}} |