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
| /*! | |
| * $.preload() function for jQuery | |
| * Preload images, CSS and JavaScript files without executing them | |
| * Script by Stoyan Stefanov – http://www.phpied.com/preload-cssjavascript-without-execution/ | |
| * Slightly rewritten by Mathias Bynens – http://mathiasbynens.be/ | |
| * Demo: http://mathiasbynens.be/demo/javascript-preload | |
| * Note that since this script relies on jQuery, the preloading process will not start until jQuery has finished loading. | |
| */ | |
| $.extend({ |
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
| #! /usr/bin/env bash | |
| #clone the repo | |
| git clone -q "${1}" "clones/${2}" | |
| cd "clones/${2}" | |
| #update the submodules (how do we handle errors here?) | |
| git submodule --quiet update --init --recursive |
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 Human(){ | |
| var that = this; | |
| var name="John Doe"; | |
| that.getName=function(){return name;} | |
| that.setName=function(value){name=value;} | |
| return that; | |
| } | |
| function Man(){ | |
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(d,c){d[c]=d[c].replace(/\bno-js\b/, "js");})(document.documentElement,"className"); |
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
| // wha..whhaaat | |
| // found in jquery source | |
| var i =0; | |
| for (; i < length;) { | |
| if (callback.apply(object[i++], args) === false) { | |
| break; | |
| } | |
| } |
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
| git init | |
| git submodule add git://github.com/kohana/core.git system | |
| git submodule add git://github.com/kohana/database.git modules/database | |
| git submodule add git://github.com/kohana/userguide.git modules/userguide | |
| git submodule add git://github.com/kohana/image.git modules/image | |
| git submodule add git://github.com/kohana/codebench.git modules/codebench | |
| git submodule add git://github.com/kohana/auth.git modules/auth | |
| git submodule add git://github.com/kohana/pagination.git modules/pagination | |
| git submodule add git://github.com/kohana/orm.git modules/orm |
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 defined('BASEPATH') or exit('No direct script access allowed'); | |
| class Module_ModuleName extends Module { | |
| public $version = '1.0'; | |
| public function info() | |
| { | |
| return array( | |
| 'name' => array( |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>CSSClean</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <!--[if IE]> | |
| <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| <style type="text/css"> | |
| body { |
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
| /** | |
| * @filename : editor_plugin.js | |
| * @description : Highslide Inline Popups plugin to replace the default inlinepopups | |
| * @developer : badsyntax (Richard Willis) | |
| * @contact : http://badsyntax.co | |
| * @demo : http://demos.badsyntax.co/tinymce-highslide-popups/ | |
| */ | |
| (function() { |
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 | |
| if ($handle = opendir('.')) | |
| { | |
| while (false !== ($file = readdir($handle))) | |
| { | |
| if ($file != "." && $file != ".." && is_dir($file)) | |
| { | |
| echo "Finding $file..."; |