Skip to content

Instantly share code, notes, and snippets.

'use strict';
var fs = require('fs'),
url = require('url'),
Promise = require('promise');
module.exports = {
'run': function(entryUrl) {
return new Promise(function(resolve) {
var toAnalyze = {
@JeroenVdb
JeroenVdb / gist:a73ff7dae8a11647b81f
Last active August 29, 2015 14:27
Sitespeed.io Graphite namespacing

Commands

./bin/sitespeed.js -u http://www.demorgen.be/ -m 10 -n 1 --graphiteHost 192.168.59.103 --verbose

./bin/sitespeed.js -u http://www.jeroenvdb.be/ -m 1 -n 1 --graphiteHost 192.168.59.103 --verbose

./bin/sitespeed.js --file urls.txt -n 1 --graphiteHost 192.168.59.103 --verbose

./bin/sitespeed.js --sites sites.txt -d 0 --graphiteHost 192.168.59.103 --verbose
@JeroenVdb
JeroenVdb / SassMeister-input.scss
Last active August 29, 2015 14:23
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$bp0: 0;
$bp1: 430px;
$bp2: 600px;
$bp3: 768px;
$bp4: 906px;
@JeroenVdb
JeroenVdb / SassMeister-input-HTML.html
Created June 23, 2015 08:17
Generated by SassMeister.com.
<div class="container">
<div class="sixpack--1">
<div class="tile tile--1">tile 1</div>
<div class="tile tile--2">tile 2</div>
<div class="tile tile--3">tile 3</div>
</div>
</div>
@JeroenVdb
JeroenVdb / .eslintrc
Created May 19, 2015 09:42
De Persgroep Javascript conventions for ESLint
# De Persgroep Javascript conventions for ESLint
# Version: 1.0.0
# ESLint: ^0.21.0
# Rule information: http://eslint.org/docs/rules/
globals:
$: false
App: false
window: false
http://www.volkskrant.nl/opinie/hoe-europas-elite-europa-verkwanselt~a3889478/?_vis_test_id=5&_vis_opt_random=0.012642487417906523&_vis_hash=9e312a796cffe6f3ccc7b1d46dbe8cc9&_vis_opt_preview_combination=2
{
"browserScaledImages": {
"warning": 1,
"error": 1
},
"cacheTime": {
"warning": 31449600, // 1 year
"error": 2592000 // 1 month
},
"criticalPathScore": {
@JeroenVdb
JeroenVdb / gist:f7b81728979c80ad82ad
Created November 21, 2014 10:44
sitespeed.io with masterfile and childfiles
info: OS: darwin 12.4.0 sitespeed:3.0.0-beta-4 phantomJs:1.9.8 java:java version "1.8.0_25"
info: Analyze 2 sites
info: Will analyze 3 pages
info: Running YSlow for http://www.demorgen.be/?adops=formats
info: Running YSlow for http://www.demorgen.be/binnenland/vakbondsprotest-hier-mag-u-maandag-grootste-hinder-verwachten-a2126787/?adops=formats
info: Running YSlow for http://www.demorgen.be/binnenland/?adops=formats
info: Done analyzing urls
info: Wrote file assets.html
info: Wrote file errors.html
info: Wrote file hotlist.html
@JeroenVdb
JeroenVdb / git-commands.md
Last active August 29, 2015 14:08
Git Bash common commands

Branch: create new

git checkout -b featurebranch

Branch: checkout remote one

git checkout featurebranch
function socialListeners() {
if (typeof FB !== 'undefined'){
FB.Event.subscribe('edge.create', function() {
dataLayer.push({
'event': 'Social interaction',
'eventAction': 'Social follow',
'eventLabel': 'Facebook'
});
}
);