Skip to content

Instantly share code, notes, and snippets.

@gruber
gruber / make_bookmarklet.pl
Last active September 13, 2023 23:22
JavaScript Bookmarklet Builder
#!/usr/bin/env perl
#
# http://daringfireball.net/2007/03/javascript_bookmarklet_builder
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
use open IO => ":utf8", # UTF8 by default
":std"; # Apply to STDIN/STDOUT/STDERR
@iamtyce
iamtyce / rockhammer-respond-to-mixin.scss
Last active December 18, 2015 11:49
Simple mixin to write inline responsive arguments within Rockhammer
// Respond-to mixin for Rock Hammer (https://github.com/malarkey/rock-hammer/)
// Author: @iamtyce
// Original author: @wernah, based on @benschwarz
// ******************** //
// RESPOND TO //
// ******************** //
// Use: @include respond-to(bp5) { }
@mixin respond-to($breakpoint) {
@malarkey
malarkey / Three Wise Monkeys.md
Created December 2, 2012 14:26
Three Wise Monkeys (NDA)

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

@malarkey
malarkey / Contract Killer 3.md
Last active April 16, 2024 21:44
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………

@karolk
karolk / ie6-throttle.js
Created July 4, 2012 13:32
Detect that the user is running IE6 and sets the screen update rate at 1 refresh per 10 seconds. This makes the website look very slow. The setting will continue to work in a browser window even if the user visits a different website as IE6 sets this for
navigator.userAgent.toLowerCase().indexOf("msie 6.")!=-1&&(screen.updateInterval=10000);
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e