(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| $base-font-size: 16px; | |
| $base-line-height: 1.5; | |
| // this value may vary for each font | |
| // unitless value relative to 1em | |
| $cap-height: 0.68; | |
| @mixin baseline($font-size, $scale: 2) { |
| // name is still bad, have yet to figure what would be more correct | |
| // sign change differences make re-using the TimezoneOffset verbage | |
| // confusing | |
| Date.prototype.getTimezoneOffsetHoursAndMinutes = function(){ | |
| // offset in minutes | |
| var tzo = this.getTimezoneOffset(); | |
| // determine 'direction' from GMT we are | |
| // if offset is positive, we're 'in the past' | |
| var behindGMT = tzo > 0; | |
| // work in positive |
| List of all Sublime Text 3 Environment Variables to be used by Snippet Makers / Plugin Developers | |
| $SELECTION The text that was selected when the snippet was triggered. | |
| $TM_CURRENT_LINE Content of the line the cursor was in when the snippet was triggered. | |
| $TM_CURRENT_WORD Current word under the cursor when the snippet was triggered. | |
| $TM_FILENAME File name of the file being edited including extension. | |
| $TM_FILEPATH File path to the file being edited. | |
| $TM_FULLNAME User’s user name. | |
| $TM_LINE_INDEX Column the snippet is being inserted at, 0 based. | |
| $TM_LINE_NUMBER Row the snippet is being inserted at, 1 based. |
| var Twit = require("twit"); | |
| var config = require('./oauthconfig'); | |
| console.log("config:"); | |
| console.log(config); | |
| var T = new Twit({ | |
| consumer_key: config.consumer_key, | |
| consumer_secret: config.consumer_secret, | |
| access_token: config.access_token, |
|- node_modules/
|- src/
| |
| |- index.js/ <----------- uses browserify so anything in node_modules is game for require()
| | |- index.js
| | '- foo.coffee
| |
| |- index.css/ <---------- uses topcoatify so anything in node_modules is game. how import/etc works needs consideration
| | |- index.css
| ig.module( | |
| 'game.entities.square' | |
| ) | |
| .requires( | |
| 'impact.entity' | |
| ) | |
| .defines(function(){ | |
| EntitySquare = ig.Entity.extend({ |
| // hopefill to wrap the built-in Error.prototype.string() with an improved version | |
| (function(){ | |
| var errToString = Error.prototype.toString; | |
| Error.prototype.toString = function() { | |
| var stack; | |
| // some browsers track the much more useful `.stack`, so use it! | |
| if (this.stack) { | |
| // some print the name/message in .stack, some don't. normalize it. | |
| stack = (this.stack + "").replace(new RegExp(this.name + ": " + this.message + "\n"),""); |
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |