This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* (C)Leanest CSS spinner ever | |
*/ | |
@keyframes spin { | |
to { transform: rotate(1turn); } | |
} | |
.progress { | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/\___/\ | |
( .\ /. ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 :)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var map = function() { | |
var domain = this.info.url.match(/^https?:\/\/([^\/]*)/)[1]; | |
emit(domain, { duration: this.duration }); | |
}; | |
var reduce = function(key, values) { | |
var result = { duration: 0 }; | |
values.forEach(function(value) { | |
result.duration += value.duration | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header nav { | |
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4); | |
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4); | |
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4); } | |
html.ie8 header nav, html.ie7 header nav, html.ie6 header nav { | |
border: solid 1px #cccccc; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
class ValInheritanceParent | |
include Mongoid::Document | |
field :parent_value | |
embeds_many :val_inheritance_embed | |
references_many :val_inheritance_ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var http = require('http') | |
, webapp = require('webapp'); | |
http.createServer(webapp.bind([])).listen(8000); | |
// ^^^^^^^^^^^^^^^ | |
// | (x) | |
// ROFLSCALE DEQUE ---/ |
NewerOlder