Skip to content

Instantly share code, notes, and snippets.

PANTS: HELLO ??? AM I LATE FOR BURNING MAN ??? IT IS COLD
PANTS: THEY PROMISED FOUR AND TWENTY BLACKBIRDS
PANTS: THIS IS MORE LIKE FOUR HUNDRED AND TWENTY BLACK DICKS ALL AT ONCE (WITHOUT REMORSE OR AN OUNCE OF POLITENESS I MIGHT ADD)
@bsdf
bsdf / gist:1350436
Created November 9, 2011 04:51
FUCK
F
FFFFUF FF
FKF CKKCCU
UUFUUUUFKKKCUCFU
FU CU FF F UF FFFKCFKKCKKKKFFU
F FFUUFFU F UFUFUUFC UFCUKFCC UFCKKKCF
KFK FUFCFCU FF F FUFF FC F F KFUCFCF F FU FFFUFKK
FCUUK KKKKKKFKC F F CCUU KCUCFUFFF F F FU F KKKKF
FFF KUUKCUK FKU CCFKU CF FKFKKKUFU FFF FUFKFK
FUUKCUKCF UU FCCKKKK C FFF FUKF FKKKKCCCF FFF U FUUFKKFFF
@gre
gre / easing.js
Last active May 17, 2024 03:33
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
@jaydson
jaydson / gist:1780598
Created February 9, 2012 15:11
How to detect a click event on a cross domain iframe
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){
@jgv
jgv / gist:2126275
Created March 19, 2012 20:07
random color on hover
$(function(){
$('#el').hover(function(){
var colors = ['blue', 'green', 'yellow', 'orangle', 'purple', 'gray', 'cyan'];
var color = colors[Math.floor(Math.random() * colors.length)];
$(this).css('background', color);
}, function(){
$(this).css('background', 'transparent');
});
});
#!/bin/bash
for i
do
lynx -dump "http://www.google.com/search?q=$i&hl=en&client=safari&rls=en&tbs=isz:ex,iszw:32,iszh:32&tbm=isch&source=lnt&sa=X&ei=9eL1T9vXJsLx0gHKx6HyBg&ved=0CC0QpwUoAQ&biw=1482&bih=886" | grep imgurl=| sed 's/.*imgurl=//' | sed 's/\&.*//' | grep '\....$' | grep -v ico | grep -v ebay
done
@jordelver
jordelver / gist:3073101
Created July 8, 2012 22:06
Set the Mac OS X SOCKS proxy on the command line

Set the Mac OS X SOCKS proxy on the command line

a.k.a. what to do when your ISP starts blocking sites :(

Set the SOCKS proxy to local SSH tunnel

networksetup -setsocksfirewallproxy "Ethernet" localhost 8080

To clear the domain and port

@bsdf
bsdf / gist:3686369
Created September 9, 2012 18:44
tblq
#!/usr/bin/env perl
use strict;
use warnings;
use WWW::Tumblr;
die 'u need to specify some filesz' if not @ARGV;
my $t = WWW::Tumblr->new(
@robinsloan
robinsloan / langoliers.rb
Last active April 7, 2024 13:22
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@kylefox
kylefox / gist:4512777
Created January 11, 2013 18:15
If you want to use Xcode's FileMerge as your git mergetool, this is how you set it up.
# Tell system when Xcode utilities live:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
# Set "opendiff" as the default mergetool globally:
git config --global merge.tool opendiff