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
aside{ | |
color:white; | |
padding:20px; | |
float:right; | |
width:200px; | |
background-color:#f16529; | |
border-bottom:20px solid #e44d26; | |
margin-bottom:50px; | |
-webkit-box-shadow:0 0px 40px -10px #AAA; | |
-moz-box-shadow:0 0px 40px -10px #AAA; |
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
/** | |
* HTML5 Placeholders for old browsers | |
* by Rutger Laurman | |
* | |
* Adds HTML5 placeholders to non-supported browsers with jQuery | |
* Fork from Marc Görtz | |
*/ | |
var HTML5Placeholders; | |
HTML5Placeholders = { |
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
<?php | |
/** | |
* Password generator script | |
* Optimized with help from http://forrst.com/people/nicholasruunu | |
*/ | |
// Set default number of passwords to generate | |
$amount = isset($_GET['amount']) ? $_GET['amount'] : 5; | |
// Set default length |
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
/** | |
* CurvyCorners + IE9 support | |
* Updated: Check for IE9, since that browser supports border-radius out of the box | |
*/ | |
function curvyObject(){var a;this.box=arguments[1],this.settings=arguments[0],this.topContainer=this.bottomContainer=this.shell=a=null;var b=this.box.clientWidth;if("canHaveChildren"in this.box&&!this.box.canHaveChildren||this.box.tagName==="TABLE")throw new Error(this.errmsg("You cannot apply corners to "+this.box.tagName+" elements.","Error"));!b&&curvyBrowser.isIE&&(this.box.style.zoom=1,b=this.box.clientWidth),!b&&curvyBrowser.get_style(this.box,"display")==="inline"&&(this.box.style.display="inline-block",curvyCorners.alert(this.errmsg("Converting inline element to inline-block","warning")),b=this.box.clientWidth);if(!b){if(!this.box.parentNode)throw this.newError("box has no parent!");for(a=this.box;;a=a.parentNode){if(!a||a.tagName==="BODY"){this.applyCorners=function(){},curvyCorners.alert(this.errmsg("zero-width box with no accountable parent","warning"));return}if(curvyBrowser.ge |
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
<?php | |
/** | |
* Convert MySQL tables to utf8_unicode_ci | |
*/ | |
// Prevent accidental execution | |
die("Please open and update this file before executing it :)"); | |
// Your connection | |
mysql_connect("localhost","development","development"); |
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
/** | |
* Self-executing callback chain on an arbitrary jQuery object | |
*/ | |
// Recursively fade in all products | |
(function shownext(jq){ | |
jq.eq(0).fadeIn("fast", function(){ | |
(jq=jq.slice(1)).length && shownext(jq); | |
}); | |
})($('#products .product')) |
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
<?php | |
/*= PHP helper functions | |
****************************************************************************/ | |
// Wrapper methods | |
function printr($r, $s = '') { | |
return printRecursive($r, array('name'=>$s)); | |
} | |
/** | |
* Prints a variable/resource recursively on screen in html pre tag |
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
// Make position fixed after scrollheight is met | |
$(window).scroll(function(e){ | |
var scrollTo = 180; | |
var scrollClass = '#gf_page_steps_3'; | |
$el = $(scrollClass); | |
position = $el.position(); | |
if ($(this).scrollTop() > scrollTo && $el.css('position') != 'fixed'){ | |
$(scrollClass).css({'position': 'fixed', 'top': '20px'}); |
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
/* Faux Console by Chris Heilmann http://wait-till-i.com */ | |
if (!window.console) { | |
var console = {init: function() { | |
console.d = document.createElement('div'); | |
document.body.appendChild(console.d); | |
var a = document.createElement('a'); | |
a.href = 'javascript:console.hide()'; | |
a.innerHTML = 'close'; | |
console.d.appendChild(a); |
OlderNewer