Skip to content

Instantly share code, notes, and snippets.


Manuel Strehl Boldewyn

View GitHub Profile
mathiasbynens / jquery.preload.js
Created Apr 22, 2010
JavaScript preload() function
View jquery.preload.js
* $.preload() function for jQuery –
* Preload images, CSS and JavaScript files without executing them
* Script by Stoyan Stefanov –
* Slightly rewritten by Mathias Bynens –
* Note that since this script relies on jQuery, the preloading process will not start until jQuery has finished loading.
jQuery.preload = function(array) {
var length = array.length,
View jQuery HTML5 placeholder fix.js
// Released under MIT license:
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
}).blur(function() {
var input = $(this);
View gist:527683
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
bfoz /
Created Sep 7, 2010
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
Kilian / annoying.js
Created Jan 6, 2011
How to be an asshole
View annoying.js
* Annoying.js - How to be an asshole to your users
* Copyright (c) 2011 Kilian Valkhof (
* Visit for more information and changelogs.
* Visit for the introduction and weblog
* Check out if you want to annoy developer instead of visitors
addyosmani / vendorPrefix.js
Created Apr 21, 2011
JS snippet for getting the current vendor prefix of a CSS(3) property
View vendorPrefix.js
function getPrefix( prop ){
var vendorPrefixes = ['Moz','Webkit','Khtml','O','ms'],
style = document.createElement('div').style,
upper = prop[0].toUpperCase() + prop.slice(1),
pref, len = vendorPrefixes.length;
while( len-- ){
if((vendorPrefixes[len] + upper) in style){
pref = (vendorPrefixes[len]);
Boldewyn / README
Created May 28, 2011
HTTP Error Responses by MIME Type
This is a collection of templates, that depict HTTP error messages in different MIME types.
Each template expects the parameters
* {CODE} - the numeric HTTP error code
* {PHRASE} - the reason phrase, e.g., "Not Found" for 404
and in some cases the parameter

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

pamelafox / Makefile
Created Oct 13, 2011
Closure/YUI/JsHint Makefile
View Makefile
# Makefile for JS/CSS:
# Uses Closure for JS compiling, YUI for CSS compiling, and JsHint for code quality checking
MAKEFLAGS = --no-print-directory --always-make
BUILDDIR = ./.build
ziadoz /
Last active Oct 25, 2022
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.