Skip to content

Instantly share code, notes, and snippets.

View snoble's full-sized avatar

Steven Klaiber-Noble snoble

View GitHub Profile
@snoble
snoble / gist:1848714
Created February 16, 2012 23:24
one more idea
create table internal.fedex_bad1 AS
select o1.order_id, o1.shipping_address_id, o1.created_at, o1.email
from orders o1
JOIN addresses a ON (o1.shipping_address_id = a.address_id)
JOIN internal.address_hashes ah ON (ah.address_id = a.address_id)
where
o1.financial_status = 'paid'
AND o1.created_at >= '2010-07-01'
AND o1.created_at <= '2011-07-01'
AND NOT EXISTS (
echo -e "\nbody {background-image: url('https://dl.dropbox.com/s/515ruct9cor67gj/sb.jpg') "'!'"important;}\n" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
echo -e "\nimg {-webkit-transform: scaleY(-1) "'!'"important;}\n" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
@snoble
snoble / index.html
Created August 10, 2012 02:05
Monotone Interpolation Bug
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
@snoble
snoble / index.html
Created August 10, 2012 16:46
Cardinal Interpolation Bug
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
@snoble
snoble / index.html
Created August 10, 2012 18:53
Monotonic Interpolation Bug
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
@snoble
snoble / index.html
Created August 10, 2012 18:57
Cardinal interpolation fix
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
@snoble
snoble / index.html
Created August 10, 2012 19:00
Monotonic Interpolation Fix
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
@snoble
snoble / prank.sh
Created August 10, 2012 21:41
the bad web design hack
echo -e "\nli:hover:nth-child(6n+3) {-webkit-transform: translate(-4px, 2px)} tr:hover:nth-child(6n+3) {-webkit-transform: translate(-4px, 2px)} div:hover:nth-child(7n+5) {-webkit-transform: translate(-4px, 2px)} td:hover:nth-child(6n+3) {-webkit-transform: translate(-4px, 2px)} span:hover:nth-child(6n+3) {-webkit-transform: translate(-4px, 2px)}\n" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
@snoble
snoble / simple.rb
Created September 10, 2012 15:21
Experiment for understanding how different browsers deal with 3rd party cookies
# set foo and foofoo to localhost in your hosts file.
# ruby simple.rb
# load http://foofoo:4567/cookie to make sure their is no initial cookie (go to http://foofoo:4567/clear_cookie if there is)
# load http://foo:4567/test
# load http://foofoo:4567/cookie to see resulting cookies
# load http://foofoo:4567/test
# load http://foofoo:4567/cookie to see resulting cookies
require 'sinatra'