Skip to content

Instantly share code, notes, and snippets.

View VincentHelwig's full-sized avatar
🏠
Working from home

Vincent Helwig VincentHelwig

🏠
Working from home
View GitHub Profile
@piotrfonte
piotrfonte / testsuite.coffee
Created July 25, 2014 08:00
PhantomCSS setup for multiple viewport tests of multiple files
# Require dependencies
# --------------------
phantomcss = require("./../../node_modules/phantomcss/phantomcss.js")
# Init PhantomCSS magic
# --------------------
phantomcss.init
# Paths
@dtothefp
dtothefp / phantomcss.js
Created July 22, 2014 14:52
test for phantomcss
/*
Author: David Fox-Powell
Company: Optimizely
Last updated date: 20 July 2014
URL: https://github.com/dtothefp/phantomcss-gitdiff
*/
var fs = require('fs');
var _src = '.'+fs.separator+'screenshots';
@julionc
julionc / 00.howto_install_phantomjs.md
Last active April 26, 2024 09:13
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@fubhy
fubhy / .gitconfig
Last active September 20, 2016 02:51
My personal .gitconfig (mostly stolen from others) :-)
[user]
# Credentials.
name = Foo Bar
email = foo@bar.com
drupal = $(whoami)
[credential]
# Save passwords in ~/.git-credentials.
helper = store
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];