Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# on osx lion, this is a great way to listen to this in the background. make sure to download and
# install sangeeta and tom and karen in system preferences. feel free to change the voices to your
# suiting, but sangeeta is a fave of mine for almost everything.
say -v Sangeeta "hey"
say -v Sangeeta "I'm sorry"
say -v Sangeeta "how would you like me to describe backbone?"
say -v Sangeeta "let's work this out for once and for all :)"
@visnup
visnup / selection.js
Created August 24, 2012 22:05 — forked from Munawwar/test.html
IE8 equivalent of HTML5/W3C Range object's startContainer,startOffset,endContainer and endOffset properties
(function selectionPolyfill(window, document) {
if (window.getSelection || !document.selection) return;
// convert an IE TextRange to a W3C one
function convert(range, startOrEnd) {
var point = range.duplicate()
, result = {};
// point is either the start or end of the range
point.collapse(startOrEnd);
@visnup
visnup / statebird
Created November 2, 2012 18:00 — forked from visnup/statebird
check state bird provisions for availability
#!/bin/sh
# state bird provisions never has a reservation open. I hate having to go to their website to
# check. this checks for me.
curl -s 'http://rez.urbanspoon.com/b/widget/2086?use_calendar=0' | fgrep "'availableDates': []" > /dev/null && echo 'nothing' || (echo 'omg! available reservations!' && open 'http://statebirdsf.com/reservations/')
@visnup
visnup / -
Last active December 28, 2015 09:19 — forked from huned/-
/\___/\
( .\ /. )
@visnup
visnup / dabblet.css
Created April 4, 2014 05:03 — forked from LeaVerou/dabblet.css
(C)Leanest CSS spinner ever
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
@visnup
visnup / dabblet.css
Created June 19, 2014 00:27 — forked from anonymous/dabblet.css
Untitled
.loading {
border-bottom: 6px solid rgba(0, 0, 0, .1);
border-left: 6px solid rgba(0, 0, 0, .1);
border-right: 6px solid rgba(0, 0, 0, .1);
border-top: 6px solid rgba(0, 0, 0, .4);
border-radius: 100%;
height: 50px;
width: 50px;
animation: rot .6s infinite linear;
}