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
$.getScript = function(url, callback, cache){ | |
$.ajax({ | |
url: url, | |
dataType: 'script', | |
success: callback, | |
cache: cache | |
}); | |
}; |
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 script allows saving & retrieval of JSON data in .php files by | |
* encapsulating in a <?php/*| ... |*/?> closure, preventing them from | |
* being accessed via URL. | |
*/ | |
////////////////////////////////////////////////////////////////////// | |
// Get JSON | |
///////////////////////////////////////////////////////////////////// |
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
/* clearing floats normal browsers */ | |
.group:after { | |
content: ""; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} | |
/* clearing floats IE6 */ |
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
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
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
{ | |
"AL": { | |
"count": "0", | |
"name": "Alabama", | |
"abbr": "AL" | |
}, | |
"AK": { | |
"count": "1", | |
"name": "Alaska", | |
"abbr": "AK" |
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 getIP(){ | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])){ | |
$ip=$_SERVER['HTTP_CLIENT_IP']; | |
}elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ | |
$ip=$_SERVER['HTTP_X_FORWARDED_FOR']; | |
}else{ $ip=$_SERVER['REMOTE_ADDR']; } | |
return $ip; | |
} |
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
/* | |
* | |
* Another fine bit of code by Kent Safranski < http://www.fluidbyte.net > | |
* | |
* HTML: | |
* <ul id="banner"> | |
* <li>Stuff</li> | |
* ... | |
* </ul> | |
* |
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
/* | |
* | |
* Simple Autocomplete Plugin | |
* @author - Kent Safranski - http://www.fluidbyte.net | |
* | |
* HTML: | |
* -------------------------------------------------------------------- | |
* <input class="autocomplete" data-src="path/to/processor.php" /> | |
* | |
* CSS: |
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
/* | |
* | |
* Inline-Block CSS Responsive Grid System | |
* | |
* <!-- 2 Column with 10% Gutter --> | |
* <div class="grid column-45 gutter-10"></div> | |
* <div class="grid column-45"></div> | |
* | |
* <!-- 3 Column with 5% Gutter --> | |
* <div class="grid column-30 gutter-5"></div> |
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
/* | |
* Simple JS Include Function | |
* Format: include({array_files},{callback}); | |
* Example: include(['script1.js','script2.js'],function(){ alert('Loaded!'); }); | |
*/ | |
function include(array, callback) { | |
var loader = function (src, handler) { | |
var script = document.createElement("script"); | |
script.src = src; |
OlderNewer