I hereby claim:
- I am jondavidjohn on github.
- I am jondavidjohn (https://keybase.io/jondavidjohn) on keybase.
- I have a public key whose fingerprint is 4E8A 39AD 82DD 34CB 8CA3 EDA4 3A65 909D EF42 7B0C
To claim this, I am signing this object:
/* | |
Animate any Node to a new parent node, retaining original object reference | |
Derived From : http://stackoverflow.com/a/5212193/555384 | |
*/ | |
function moveAnimate($element, $newParent){ | |
var oldOffset, newOffset, $temp; | |
$element = $($element); //Allow passing in either a JQuery object or selector |
<?php | |
/*** | |
* filepath: application/core/MY_Controller.php | |
*/ | |
//setup your base controller | |
class DB_Controller extends CI_Controller { | |
//declare them globally in your controller | |
protected $billing_db; |
I hereby claim:
To claim this, I am signing this object:
Array.prototype.join = (function(_super) { | |
// return our new `join()` function | |
return function() { | |
console.log("Hey, you called join!"); | |
return _super.apply(this, arguments); | |
}; | |
// Pass control back to the original join() | |
// by using .apply on `_super` |
Loaded plugins: fastestmirror | |
Loading mirror speeds from cached hostfile | |
* base: mirror.thelinuxfix.com | |
* epel: mirror.steadfast.net | |
* extras: centos.corenetworks.net | |
* updates: mirror.fdcservers.net | |
repo id repo name status | |
C6.0-base CentOS-6.0 - Base disabled | |
C6.0-centosplus CentOS-6.0 - CentOSPlus disabled | |
C6.0-contrib CentOS-6.0 - Contrib disabled |
# if you're requesting anything within '/wp-content/uploads' or '/files' | |
location ~ (/wp-content/uploads|files) { | |
# and it doesn't exist | |
if (!-e $document_root$uri) { | |
# try and match the dimensions from the filename | |
rewrite (\d+)(?:x)(\d+)(?:\.(?:[^\.]+)$) http://lorempixel.com/$1/$2 break; | |
# otherwise just use a default size | |
rewrite .* http://lorempixel.com/800/600 break; | |
} | |
} |
import argparse | |
argparser = argparse.ArgumentParser(description="This is a Description of the Utility") | |
argparser.add_argument('--foo', '-f', help='help text for --foo argument', default="World") | |
def main(): | |
"""Script Entry Point""" | |
print "Hello %s!" % args.foo |
set :test_log, "logs/capistrano.test.log" | |
namespace :deploy do | |
before 'deploy:update_code' do | |
puts "--> Running tests, please wait ..." | |
unless system "bundle exec rake > #{test_log} 2>&1" #' > /dev/null' | |
puts "--> Tests failed. Run `cat #{test_log}` to see what went wrong." | |
exit | |
else | |
puts "--> Tests passed" |
var AppDAL = (function() { | |
var _BASE_URL = "http://"+ window.location.host +"/api/"; | |
var _request = function(resource_uri, method, s_cback, e_cback, data) { | |
data = data || null; | |
var resource_url = _BASE_URL + resource_uri; | |
var xhr = new window.XMLHttpRequest(); | |
xhr.onreadystatechange = function () { |