Skip to content

Instantly share code, notes, and snippets.

View dtipson's full-sized avatar

Drew dtipson

View GitHub Profile
@dtipson
dtipson / dabblet.css
Created September 10, 2014 15:45 — forked from LeaVerou/dabblet.css
Switch-style checkboxes.
/**
* Switch-style checkboxes.
* Inspired by Espresso’s “Tools” switch
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
@dtipson
dtipson / 0_reuse_code.js
Created August 6, 2014 16:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dtipson
dtipson / dabblet.css
Created July 20, 2013 23:19 — forked from LeaVerou/dabblet.css
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$plugin_info = array(
'pi_name' => 'URL Encode',
'pi_version' => '1.1',
'pi_author' => 'Airtype Studio / BSD',
'pi_author_url' => 'http://www.airtypestudio.com/',
'pi_description' => 'Runs urlencode on a string of text.',
@dtipson
dtipson / dabblet.css
Created March 15, 2013 21:53 — forked from LeaVerou/dabblet.css
Switch-style checkboxes.
/**
* Switch-style checkboxes.
* Inspired by Espresso’s “Tools” switch
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
@dtipson
dtipson / dabblet.css
Created March 4, 2013 22:10 — forked from LeaVerou/dabblet.css
Failed attempt at gracefully degrading switch-style checkboxes
/**
* Failed attempt at gracefully degrading switch-style checkboxes
* without pseudoelements (which shouldn’t exist on replaced elements) and extra elements.
* Inspired by Espresso’s “Tools” switch
* DO NOT USE. Currently only works properly in WebKit :(
*/
input[type="checkbox"]:not(:checked)+label,
input[type="checkbox"]:checked+label { /* :checked here acting as a filter for older browsers */
appearance: none;
@dtipson
dtipson / wulf.md
Created June 19, 2012 19:42
Bill Wulf's Resignation Letter

Comp. Sci. Prof. William Wulf’s resignation letter

BY on June 19, 2012

Below is a resignation letter submitted [to the Cavalier Daily] this morning by Computer Science Prof. William Wulf:

Dean and Interim President Zeithaml,

By this email I am submitting my resignation, effective immediately. I do not wish to be associated with an institution being as badly run as the current UVa. A BOV that so poorly understands UVa, and academic culture more generally, is going to make a lot more dumb decisions, so the University is headed for disaster, and I don’t want to be any part of that. And, frankly, I think you should be ashamed to be party to this debacle!