Here's what I do when I publish an NPM package.
I always like to check what's going on in a repo before I do anything:
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var source = require('vinyl-source-stream'); | |
| var buffer = require('vinyl-buffer'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babel = require('babelify'); | |
| function compile(watch) { | |
| var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
(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.
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2
| [ | |
| {"name":"Alabama","iso_code":"US-AL"}, | |
| {"name":"Alaska","iso_code":"US-AK"}, | |
| {"name":"Arizona","iso_code":"US-AZ"}, | |
| {"name":"Arkansas","iso_code":"US-AR"}, | |
| {"name":"California","iso_code":"US-CA"}, | |
| {"name":"Colorado","iso_code":"US-CO"}, | |
| {"name":"Connecticut","iso_code":"US-CT"}, | |
| {"name":"Delaware","iso_code":"US-DE"}, | |
| {"name":"District of Columbia","iso_code":"US-DC"}, |
Backbone is great but I continually found the default sorting method limited due to the following:
Disc 1, Disc 2, … Disc 10 would become Disc 1, Disc 10, Disc 2
With the help of Jim Palmer's naturalSort.js, I was able to integrate natrual sorting into Backbone.Collection.
Backbone collections are automatically sorted and now, by simply adding sortType:"natural", your collections can be sorted naturally.
##Chai Expect
##Language Chains
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var menuEntries = [ {name: "Run Query", functionName: "runQuery"} ]; | |
| ss.addMenu("HTTP Archive + BigQuery", menuEntries); | |
| } | |
| function runQuery() { | |
| var projectNumber = 'httparchive'; | |
| var sheet = SpreadsheetApp.getActiveSheet(); |
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |