Skip to content

Instantly share code, notes, and snippets.

View snoble's full-sized avatar

Steven Klaiber-Noble snoble

View GitHub Profile
a = 2 if a.nil?
if b.nil?
b = 2
end
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>moments -- Sage</title>
<link type="text/css" rel="stylesheet" href="/css/main.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'
@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 / 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 / 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 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 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 02:05
Monotone Interpolation Bug
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
echo -e "\nimg {-webkit-transform: scaleY(-1) "'!'"important;}\n" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css