This file contains 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
/** | |
* Require the module at `name`. | |
* | |
* @param {String} name | |
* @return {Object} exports | |
* @api public | |
*/ | |
function require(name) { | |
var module = require.modules[name]; |
This file contains 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
var integration = require("integration"); | |
var load = require("segmentio-load-script"); |
This file contains 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
$ configure < my-app.json | |
configure : my-app | |
install : nginx | |
start : nginx | |
install : nodejs | |
start : my-app | |
took : 1457ms | |
This file contains 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
configure() | |
.use(nginx()) | |
.use(nodejs()) | |
.use(myapp()) | |
.end(); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript"> | |
window.analytics || (window.analytics = []), window.analytics.methods = ["identify", "track", "trackLink", "trackForm", "trackClick", "trackSubmit", "page", "pageview", "ab", "alias", "ready", "group", "on", "once", "off"], window.analytics.factory = function (t) { | |
return function () { | |
var a = Array.prototype.slice.call(arguments); | |
return a.unshift(t), window.analytics.push(a), window.analytics | |
} |
This file contains 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
// sources: https://segment.io/libraries/analytics.js#getting-started | |
// https://github.com/phillbaker/analytics-js-rails/blob/master/app/views/analytics-js/_loader.html.erb | |
// Create a queue, but don't obliterate an existing one! | |
window.analytics || (window.analytics = []); | |
// A list of all the methods in analytics.js that we want to stub. | |
window.analytics.methods = ['identify', 'track', 'trackLink', 'trackForm', | |
'trackClick', 'trackSubmit', 'page', 'pageview', 'ab', 'alias', 'ready', | |
'group', 'on', 'once', 'off']; |
This file contains 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
var rework = require('rework'); | |
var stdin = require('stdin'); | |
var gm = require('gm'); | |
stdin(function(str){ | |
rework(str) | |
.use(rework.at2x()) | |
.use(rework.url(retina)) | |
.toString(); |
This file contains 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
list = list(users, el) | |
.append('g') | |
.translate(': age * 13', 0) | |
.map(': age') | |
.append('rect') | |
.height(11) | |
.width(11) | |
.style('fill', '#eee') | |
.y(': i * 13'); |
This file contains 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
λ webkit grep -nr "::-webkit-" . | sed -En 's/.*(::-webkit-[a-z]+(-[a-z]+)?).*/\1/p' | sort -u | |
::-webkit-appearance | |
::-webkit-calendar-picker | |
::-webkit-calendar-pixker | |
::-webkit-clear-button | |
::-webkit-color-swatch | |
::-webkit-date-and | |
::-webkit-date-time | |
::-webkit-datetime-edit |
This file contains 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
λ mozilla grep -nr "::-moz-" . | sed -En 's/.*(::-moz-[a-z]+(-[a-z]+)?).*/\1/p' | sort -u | |
::-moz-anonymous-flex | |
::-moz-anonymous-positioned | |
::-moz-button-content | |
::-moz-canvas | |
::-moz-cell-content | |
::-moz-column-content | |
::-moz-display-comboboxcontrol | |
::-moz-dropdown-list |
NewerOlder