(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.
| 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, |
| 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. |
| // 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 |
| $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) { |
(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.
| --[[ json.lua | |
| A compact pure-Lua JSON library. | |
| The main functions are: json.stringify, json.parse. | |
| ## json.stringify: | |
| This expects the following to be true of any tables being encoded: | |
| * They only have string or number keys. Number keys must be represented as | |
| strings in json; this is part of the json spec. |
| module.exports = class AngularController | |
| # register the subclass with angular, module and name are optional | |
| @register: (name, module) -> | |
| module ?= @module || angular.module 'controllers' | |
| name ?= @name || @toString().match(/function\s*(.*?)\(/)?[1] | |
| module.controller name, @ | |
| # inject the list of dependencies, as a list of Strings | |
| @inject: (args...) -> |
/var/lib/lxc/mycontainer/config$HOME/.local/share/lxc/mycontainer/configlxc.mount directive, that follows the format below. Substitute proper paths as necessary:
lxc.mount.entry = /path/to/folder/on/host /path/to/mount/point none bind 0 0