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
// duck punch Array.indexOf into IE browsers | |
if(!Array.indexOf){ | |
Array.prototype.indexOf = function(obj){ | |
for(var i=0; i<this.length; i++){ | |
if(this[i]==obj){ | |
return i; | |
} | |
} | |
return -1; | |
} |
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 autoPlay(){ | |
$('a.next').trigger('click'); | |
setTimeout(autoPlay, 8e3); | |
} | |
setTimeout(autoPlay, 8e3); |
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 fitBest(str, n){ | |
var r = /\W+\w*(?=$)/m, | |
s = str.slice(0, n - 1)+"\n", | |
t = /<\/?[^>]+>/g, | |
c = /\/+/g, | |
p = /<\/?[^>]+(?=$)/m, | |
e = "...", | |
new_str = s.slice(0, s.search(r)), | |
tags = new_str.match(t), | |
open_tags = [], |
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
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
/* Custom Webkit scroll bar, super fucking dope | |
http://beautifulpixels.com/goodies/create-custom-webkit-scrollbar/ */ | |
body { position:absolute; top:0px; left:0; bottom:0; right:10px; overflow-y:scroll; overflow-x:hidden;} | |
html { | |
overflow-y: auto; | |
background-color: transparent; | |
} | |
::-webkit-scrollbar { |
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
You have modified your Gemfile in development but did not check | |
the resulting snapshot (Gemfile.lock) into version control | |
You have added to the Gemfile: | |
* source: source at km_theme | |
* source: rubygems repository http://rubygems.org/ | |
* rails (= 3.0.3) | |
* sqlite3-ruby | |
* spree (~> 0.40.1) | |
* active_merchant (~> 1.5.2) |
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 cache(key, value, persist, expires){ | |
if( typeof key == "undefined" ) return; | |
var data, is_json, | |
cache_value = localStorage.getItem(key); | |
// Return value if just the key is passed | |
if( typeof value == "undefined" ) { | |
// Detect if the string from localStorage tastes like JSON or an Array | |
is_json = /^\{|\[.+\}|\]$/.test(cache_value); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World!</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script> | |
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script> | |
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script> | |
</head> | |
<body> |
OlderNewer