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
/* | |
Demo of shape-outside: border-box; by Lea Verou | |
Original CSS Shapes demo by Sara Soueidan | |
*/ | |
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400); | |
.demo { | |
margin: 50px auto; | |
width: 100%; |
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 is a template bookmarklet that loads jQuery. Also works | |
* if another library has defined $ itself. | |
*/ | |
(function () { | |
var s = document.createElement('script'); | |
s.setAttribute('src', 'http://jquery.com/src/jquery-latest.js'); | |
s.onload = function () { | |
jQuery.noConflict(); |
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 when = function(){ | |
if( !(this instanceof when) ) return new when(arguments); //return new instance of itself | |
var self = this; //cached so the syntax of code within the function is more readable | |
self.pending = Array.prototype.slice.call(arguments[0]); //convert arguments passed in to array | |
self.pending_length = self.pending.length; //cache length of the arguments array | |
self.results = []; //container for results of async functions | |
(function(){ // define pass() within this context so that the outer scope of self(this) is available when pass() is executed within the user's async functions |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
<html> | |
<head></head> | |
<body onload="iframeResizePipe()"> | |
<iframe id="helpframe" src='' height='0' width='0' frameborder='0'></iframe> | |
<script type="text/javascript"> | |
function iframeResizePipe() | |
{ | |
// What's the page height? | |
var height = document.body.scrollHeight; |
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
.clearfix{ zoom: 1;} | |
.clearfix:before, .clearfix:after{ content: ""; display: table;} | |
.clearfix:after { clear: both;} |
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
/** | |
* animator factory for creating requestAnimationFrame callbacks | |
* and simplifying their cancellation. Includes Erik Moller polyfill | |
* @author Kyle Phillips | |
* @example | |
* animator(function(){ | |
* //do this every time | |
* if(Math.random() > 0.9){ | |
* this.complete(); | |
* } |
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
# Define specified subdomains first | |
<VirtualHost *:80> | |
ServerName subdomain.domain.com | |
DocumentRoot "/path/to/domain.com/subdomains/subdomain" | |
</VirtualHost> | |
# Define domain and wildcard subdomains second | |
<VirtualHost *:80> | |
ServerName domain.com | |
DocumentRoot "/path/to/domain.com/httpdocs" |
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 now = (function() { | |
// Returns the number of milliseconds elapsed since either the browser navigationStart event or | |
// the UNIX epoch, depending on availability. | |
// Where the browser supports 'performance' we use that as it is more accurate (microsoeconds | |
// will be returned in the fractional part) and more reliable as it does not rely on the system time. | |
// Where 'performance' is not available, we will fall back to Date().getTime(). | |
// jsFiddle: http://jsfiddle.net/davidwaterston/xCXvJ |
OlderNewer