Skip to content

Instantly share code, notes, and snippets.

@reynish
reynish / README.md
Last active August 29, 2015 14:08 — forked from mbostock/.block

This example uses a custom tween that interpolates the window’s vertical scroll offset.

@reynish
reynish / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block

This is not a true Dorling cartogram; it lacks links between adjacent features. Instead of trying to preserve connectedness, this pseudo-cartogram tries to preserve locality, putting each circle as close as possible to its origin without overlapping.

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@reynish
reynish / twbs.responsivepull.less
Created February 18, 2014 13:19
LESS: twitter bootstrap responsive pull right & pull left with a reset option
.pull-left,
.pull-left-xs { float: left; }
.pull-right,
.pull-right-xs { float: right; }
.pull-reset,
.pull-reset-xs { float: none; }
@media (min-width: @screen-sm-min) {
@reynish
reynish / twbs.responsivepull.css
Last active August 29, 2015 13:56
Pure css responsive version of twitter bootstrap pull right & pull left with a reset option.
/* With default bootstrap breakpoint sizes */
.pull-left-xs {
float: left;
}
.pull-right-xs {
float: right;
}
.pull-reset-xs {
@reynish
reynish / 3_jsbin-draganddrop.py
Created November 12, 2013 17:36
Python Selenium Drag and Drop
import unittest
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
import time
baseUrl = 'http://jsbin.com/afica/13344'
var request = require('superagent')
, chai = require('chai')
, expect = chai.expect;
describe("passing browser", function() {
var response;
before(function(done) {
request
@reynish
reynish / index.haml
Created March 6, 2013 22:58
A CodePen by Alex Reynish. fauxSelector - Change a <select> into a searchable list!
%meta{:name => "viewport", :content => "width=device-width; initial-scale=1.0; maximum-scale=1.0;"}
%section.wrapper
%h1 fauxSelector
%select.fauxSelector
%option{:value => "PS"} Please select
%option{:value => "S"} Soemthing
%option{:value => "SE"} Something else
%section.wrapper
@reynish
reynish / index.haml
Created March 6, 2013 21:47
A CodePen by Alex Reynish. fauxSelector - Change a <select> into a searchable list!
%h2 Something
%section.wrapper
%h1 fauxSelector
%select.fauxSelector
%option{:value => "PS"} Please select
%option{:value => "S"} Soemthing
%option{:value => "SE"} Something else
%section.wrapper
%h1 fauxSelector
@reynish
reynish / index.haml
Created March 6, 2013 21:12
A CodePen by Alex Reynish. fauxSelector - Change a <select> into a searchable list!
%h2 Something
%section.wrapper
%h1 fauxSelector
%select.fauxSelector
%option{:value => "PS"} Please select
%option{:value => "S"} Soemthing
%option{:value => "SE"} Something else
%section.wrapper
%h1 fauxSelector