Copyright (c) 2011 Jed Schmidt
a small module for auto-importing modules in node.js.
require( "./autorequire" )
require.auto( <module-name> )
| #!/bin/bash | |
| # Install script for Latest WordPress by Johnathan Williamson - extended by Don Gilbert | |
| # Disclaimer: It might not bloody work | |
| # Disclaimer 2: I'm not responsible for any screwups ... :) | |
| # DB Variables | |
| echo "MySQL Host:" | |
| read mysqlhost | |
| export mysqlhost |
| // force certain pages to be refreshed every time. mark such pages with | |
| // 'data-cache="never"' | |
| // | |
| jQuery('div').live('pagehide', function(event, ui){ | |
| var page = jQuery(event.target); | |
| if(page.attr('data-cache') == 'never'){ | |
| page.remove(); | |
| }; | |
| }); |
| (function(window,undefined){ | |
| // Prepare our Variables | |
| var | |
| document = window.document, | |
| $ = window.jQuery; | |
| // Wait for Document | |
| $(window).bind(function(){ | |
| // Prepare Variables |
| <?php | |
| // Our Page Action | |
| public function pageAction ( ) { | |
| // Prepare our variables for our view | |
| // ... | |
| // Handle our view | |
| return $this->awesomeRender('page.html'); | |
| } | |
| function webGLStart() { | |
| var pos, $id = function(d) { return document.getElementById(d); }; | |
| //Create moon | |
| var moon = new PhiloGL.O3D.Sphere({ | |
| nlat: 30, | |
| nlong: 30, | |
| radius: 2, | |
| textures: 'moon.gif' | |
| }); |
This is now an actual repo:
| #!/usr/bin/env ruby | |
| # Aside from removing Ruby on Rails specific code this is taken verbatim from | |
| # mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
| # - Ryan Florence (http://ryanflorence.com) | |
| # | |
| # Install this hook to a remote repository with a working tree, when you push | |
| # to it, this hook will reset the head so the files are updated | |
| if ENV['GIT_DIR'] == '.' |