Skip to content

Instantly share code, notes, and snippets.

View davidhund's full-sized avatar

David Hund davidhund

View GitHub Profile
@davidhund
davidhund / latest-user-tweets-json
Created January 26, 2013 21:27
Latest 3 tweets for user as JSON
http://search.twitter.com/search.json?q=from:davidhund&rpp=3&result_type=recent
@davidhund
davidhund / latest-facebook-statuses-json
Last active December 11, 2015 18:58
Latest FB statuses
https://graph.facebook.com/<USERNAME>/statuses?fields=from.name,message,updated_time&limit=3&access_token=ABCD+
OR
https://graph.facebook.com/<ID>/statuses?fields=from.name,message,updated_time&limit=3&access_token=ABCD+
@davidhund
davidhund / dabblet.css
Created February 5, 2013 09:26
Experimenting with background-clip fallbacks
/**
* Experimenting with background-clip fallbacks
* As per: http://nimbupani.com/using-background-clip-for-text-with-css-fallback.html
*
* I was trying to see if we could do away with the linear-gradient hacks and use
* something simpler.
*
* First I thought about using -apple- or -khtml- prefixes for the effect:
* Opera picks up -webkit- but not -apple- and Webkit supposedly still supports those...
* Except: Chrome (Canary) no longer does :(
@davidhund
davidhund / dabblet.css
Created February 6, 2013 19:49
Experimenting with some SVG
/**
* Experimenting with some SVG
*/
body {
font: Helvetica, sans-serif;
font-size: 26px;
text-align: center;
background: #FFF;
color: #333;
margin: 0;
@davidhund
davidhund / dabblet.css
Created February 12, 2013 12:45
A rotated hexagon with CSS only
/**
* A rotated hexagon with CSS only
*/
body {
background: #f06;
background: linear-gradient(45deg, #CFF, #3FF);
color: #FFF;
min-height: 100%;
}
@davidhund
davidhund / dabblet.css
Created February 12, 2013 13:10
A Happy Little™ Flower Accident with CSS
/**
* A Happy Little™ Flower Accident with CSS
*/
body {
background: #f06;
background: linear-gradient(45deg, #CFF, #3FF);
color: #FFF;
min-height: 100%;
}
@davidhund
davidhund / dabblet.css
Created February 12, 2013 13:46
A Happy Little™ Flower Accident with CSS
/**
* A Happy Little™ Flower Accident with CSS
*/
body {
background: #f06;
background: linear-gradient(45deg, #CFF, #3FF);
color: #FFF;
min-height: 100%;
}
@davidhund
davidhund / dabblet.css
Created February 19, 2013 11:51
Untitled
.holder {
display: table;
}
.content {
background: black;
color: white;
display: table-cell;
}
.footer {
@davidhund
davidhund / dabblet.css
Created February 19, 2013 11:58
Quick Inline Definition List, TOC style
/**
* Quick Inline Definition List, TOC style
*/
html { background: #EEE; color: #333; margin: 0; padding: 0; }
body { background: #FFF; margin: 1em auto; padding: 1em; max-width: 30em; }
dl.toc {
margin: 0 0 1em 0;
line-height: 1.5;
@davidhund
davidhund / dabblet.css
Created February 25, 2013 14:01
Testing CSS Toggle()
/**
* Testing CSS Toggle()
*/
/* Straight from the Spec
http://dev.w3.org/csswg/css3-values/#toggle
*/
ul { list-style-type: disc; }
ul ul { list-style-type: toggle(disc, circle, square, box); }