Skip to content

Instantly share code, notes, and snippets.

2020/12/14 20:42:58 build status: BUILDING
{"stream":"Done in 139.03s.\n"}
{"stream":"Done in 139.33s.\n"}
{"stream":"\u001b[91mreal\t2m 19.67s\nuser\t5m 14.86s\nsys\t0m 19.28s\n\u001b[0m"}
{"stream":"yarn run v1.19.1\n"}
{"stream":"$ /frontend/node_modules/.bin/datadog-ci sourcemaps upload --service=frontend-www --release-version=7728380ee9eecd348486984997047ff10546d119 --minified-path-prefix=https://www.dollarshaveclub.com/www/static/js build/static/js\n"}
@doctyper
doctyper / gist:1411283
Created November 30, 2011 22:11
Add latency to localhost
# enable
sudo ipfw pipe 1 config bw 50KBytes/s delay 100ms
sudo ipfw add 1 pipe 1 src-port 80
sudo ipfw add 2 pipe 1 dst-port 80
# disable
sudo ipfw delete 1
sudo ipfw delete 2
@doctyper
doctyper / desaturate.js
Created May 26, 2011 01:03
desaturate canvas image
// Usage:
// var ctx = canvas.getContext("2d");
// var data = desaturate(ctx);
// ctx.putImageData(data);
var desaturate = function (ctx) {
var imgData = ctx.getImageData(0, 0, dimension, dimension);
for (y = 0; y < dimension; y++) {
for (x = 0; x < dimension; x++) {
@doctyper
doctyper / cloudSettings
Created February 26, 2019 21:25 — forked from jamsea/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-02-26T21:19:57.679Z","extensionVersion":"v3.2.5"}
svg:not(:root) {
overflow: hidden;
}
#foo {
&:before {
content: icon(audio);
}
}
Running "clean:build" (clean) task
Cleaning "dist"...OK
Running "clean:postbuild" (clean) task
Running "generateinit:build" (generateinit) task
Running "requirejs:compile" (requirejs) task
Tracing dependencies for: modernizr-build
~/Desktop/test/init master
❯ npm install
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/grunt-contrib-connect/0.5.0
npm http GET https://registry.npmjs.org/grunt-contrib-imagemin
npm http GET https://registry.npmjs.org/matchdep/0.3.0
npm http GET https://registry.npmjs.org/grunt-contrib-copy/0.4.1
npm http GET https://registry.npmjs.org/grunt-contrib-jshint/0.7.2
npm http GET https://registry.npmjs.org/grunt-contrib-requirejs/0.4.1
npm http GET https://registry.npmjs.org/grunt-contrib-concat
@doctyper
doctyper / pre-push
Last active December 21, 2015 17:58
#!/bin/sh
afplay path/to/push-it.mp3 > /dev/null 2>&1 &
document.body.addEventListener("DOMNodeInserted", function (e) {
if ((e.target.id || "").indexOf("fancybox") !== -1) {
e.target.parentNode.removeChild(e.target);
}
});
@doctyper
doctyper / repaint.js
Created May 22, 2013 17:59
How to force a repaint without a timeout
item.style.display = "none";
var computed = window.getComputedStyle(item).display;
item.style.display = "";