Skip to content

Instantly share code, notes, and snippets.

@eknown
eknown / breadcrumbs-no-more
Created March 30, 2015 17:26
Kosher Breadcrumbs for Passover
do {
$(nav).switchClass( "breadcrumbs", "matzaballs", 0, "linearBurn" );
}
while (passover==true);
@eknown
eknown / adding an element
Created February 11, 2015 22:50
Using Dribbble API v1: adding another piece of data
'<li class="box"><img src="'+val.images.normal+'" /><h2>'+val.title+'</h2><p><span>'+val.views_count+'</span><a href="'+val.html_url+'">original post &rarr;</a></p></li>'
@eknown
eknown / dribbble-v1-use-case
Created February 11, 2015 22:17
Simple Dribbble API v1 Use Case
<script type='text/javascript'>
$(function() {
$.getJSON('https://api.dribbble.com/v1/users/USERNAME/shots?access_token=TOKEN&callback=?', function(resp) {
if (resp.data.length > 0) {
$.each(resp.data.reverse(), function(i, val) {
$('#dribbble').prepend(
'<li class="box"><img src="'+val.images.normal+'" /><h2>'+val.title+'</h2><p><a href="'+val.html_url+'">original post &rarr;</a></p></li>'
);
});
}
@eknown
eknown / Default (OSX).sublime-keymap
Created August 20, 2012 18:42
prefs open in browser chrome osx
[
{ "keys": ["ctrl+t"], "command": "side_bar_new_file" },
{ "keys": ["f12"],
"command": "side_bar_open_in_browser" ,
"args":{"paths":[], "type":"testing"}
},
{ "keys": ["command+l"],
"command": "side_bar_open_in_browser",
"args":{"paths":["/Users/enonavital/Applications/Google Chrome.app"], "type":"production"}
},
@eknown
eknown / dabblet.css
Created March 7, 2012 14:33
Untitled
a.hh {background:url(http://f.cl.ly/items/3w1b2b260y1I0d0n3i0f/loader-hover.gif) top left; width:104px; height:100px; display:block;}
a.hh:hover {background-position:bottom left;}