| layout | recipe | |||||
|---|---|---|---|---|---|---|
| title |
|
|||||
| author |
|
|||||
| difficulty |
|
|||||
| duration | 1-3 hours | |||||
| description | Large intro text goes here | |||||
| repo |
|
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
| module.exports = function(server) { | |
| var buttonQuery = server.where({type: 'button'}); | |
| server.observe([buttonQuery], function(button){ | |
| button.on('click', function(b){ | |
| console.log(b); | |
| }) | |
| }); |
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
| // Creates a 'range' Array, extracted from Liquid.js | |
| function makeRange(from, to) { | |
| var arr= [], | |
| left= parseInt(from), | |
| right= parseInt(to); | |
| // Check if left and right are NaN, if so try as characters | |
| if( isNaN(left + right) ) { | |
| // TODO Add in error checking to make sure ranges are single | |
| // character, A-Z or a-z, etc. | |
| left = from.charCodeAt(0); |
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
| #welcome to class | |
| #goals for today | |
| * learn about deckdown | |
| * ??? | |
| * profit | |
| ##Corgis are awesome |
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 tiny Jekyll filter for giving custom dates a proper timezone offset | |
| # example usage `{{ post.startDate | tz_local | date: '%l:%M %P'}}` | |
| # Why? If you omit a timezone offset, Jekyll automatically adds +0000...which is probably not what you want. | |
| # This let's dates like `startDate: 2015-1-14 18:00:00` render correcty in local time. DST is calculated correctly | |
| # NOTE: This will still inherit Jekyll's timezone property as set in _config.yml | |
| module TZLocal | |
| def tz_local(input) | |
| input = input + (Time.parse(input.to_s).gmt_offset) * -1 | |
| end |
