This file contains hidden or 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 UrlExists(url) { | |
var http = new XMLHttpRequest(); | |
http.open('HEAD', url, false); | |
http.send(); | |
return http.status!=404; | |
} |
This file contains hidden or 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
/*! | |
* CSS Reset 2011-12-25 | |
* https://gist.github.com/gists/1360380 | |
* | |
* Author: Takeru Suzuki, http://terkel.jp/ | |
* License: Public domain | |
* | |
* Inspired by Normalize.css: http://necolas.github.com/normalize.css/ | |
*/ |
This file contains hidden or 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
// usage: log('inside coolFunc', this, arguments); | |
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
window.log = function(){ | |
log.history = log.history || []; // store logs to an array for reference | |
log.history.push(arguments); | |
if(this.console) { | |
arguments.callee = arguments.callee.caller; | |
var newarr = [].slice.call(arguments); | |
(typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr)); | |
} |
This file contains hidden or 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
> mkdir <your-project> | |
> cd <your-project> | |
Begin install | |
> npm install -g yo bower grunt-cli | |
Create new yeoman project | |
> yo webapp | |
Install dependencies |
This file contains hidden or 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 showMenu = function(){ | |
$(this) | |
.find(' > a') | |
.stop().animate({ | |
backgroundColor: menuBGHilight, | |
color: menuColorHilight | |
}, 'fast'); | |
$(this).find('.sub-navigator').length>0 && | |
$(this).find('.sub-navigator').stop(true,true).slideDown(1000, 'easeInOutBack'); |
This file contains hidden or 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
/* | |
* life-of-pi-deconstructed - Micro site showing the making of the movie Life Of Pi. | |
* | |
* | |
* Build by Soap Creative (http://soapcreative.com) | |
* Version 0.1.0 (2013-03-15) | |
* | |
* Copyright (c) 2013 Fox | |
*/ | |
var requirejs, require, define; |
This file contains hidden or 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
<div class="wrap"> | |
<div class="btn"><i class="icon-ok"></i></div> | |
<div class="btn active"><i class="icon-ok"></i> | |
</div> | |
</div> |
This file contains hidden or 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
<div class="kudos" data-amount="0" data-url="codepen.io/TimPietrusky/pen/acBCf"></div> | |
<footer> | |
2013 by | |
<a href="http://twitter.com/TimPietrusky" target="_blank">@TimPietrusky</a> | |
</footer> |
This file contains hidden or 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
<input type="file" id="collection" multiple /><br/> |
This file contains hidden or 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 | |
/* | |
Plugin Name: i18n Date | |
Description: Can you read plugin name ? | |
Author: @ilumin | |
Version: 1.0 | |
*/ | |
function get_i18n_date($date_string, $date_format = false) | |
{ |
OlderNewer