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
<?xml version="1.0"?> | |
<project name="demo" default="build"> | |
<property name="build2.message" value="Michael Soileau"/> | |
<property file='build.properties' /> | |
<!-- Currently has the variable build.dir and base.dir in it --> | |
<!-- Properties are how you include files in php from build.properties --> | |
<!-- Just say a message to make sure things are working. --> | |
<target name="build2.sayMessage"> |
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
--- | |
vagrantfile-local: | |
vm: | |
box: puphpet/centos65-x64 | |
box_url: puphpet/centos65-x64 | |
hostname: null | |
memory: '512' | |
cpus: '1' | |
chosen_provider: virtualbox | |
network: |
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
# Begin HackRepair.com Blacklist | |
RewriteEngine on | |
RewriteCond %{HTTP_USER_AGENT} ^[Ww]eb[Bb]andit [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} ^binlar [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [NC,OR] |
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
myObject = { | |
callFunction : function(){ | |
alert("Hello there"); | |
}, | |
name : "Ryan", | |
add : function(){ | |
var args = arguments; | |
var a = 0; | |
for(var i=1; i<args.length; i++){ | |
a += (parseInt(args[i-1], 10) + parseInt(args[i], 10)); |
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
(function addXhrProgressEvent($) { | |
var originalXhr = $.ajaxSettings.xhr; | |
$.ajaxSetup({ | |
progress: function() { console.log("standard progress callback"); }, | |
xhr: function() { | |
var req = originalXhr(), that = this; | |
if (req) { | |
if (typeof req.addEventListener == "function") { | |
req.addEventListener("progress", function(evt) { | |
that.progress(evt); |
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
/* The following are mutation observers for performance reasons. */ | |
var canObserveMutation = 'MutationObserver' in window; | |
if(canObserveMutation){ | |
var observer, callback; | |
callback = function( allmutations ){ | |
allmutations.map( function(mr){ | |
console.dir(mr); |
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 trimmedResponse = xmlHttp.responseText.replace(/^\s*/,'').replace(/\s*$/,'').toLowerCase(); |
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
<?php | |
// The Joe Debug function. To use successfully, create a global variable called $MSDebugVar. | |
// It accepts an optional string calls $testVals that can be used to pass in any values that | |
// You wish to be tested during debugging. | |
// Refactor to remove the isarray and just use the built-in php isarray | |
function joeDebug($testVals = null, $isJavaScript = false, $isArray = false){ | |
if(!function_exists('print_var_name')){ | |
function print_var_name($var) { | |
foreach($GLOBALS as $var_name => $value) { | |
if ($value === $var) { |
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
<?php | |
define("DS",DIRECTORY_SEPARATOR,true); | |
define('BASE_PATH',realpath(dirname(__FILE__)).DS,true); | |
$include_file = BASE_PATH . '.mysql.inc.php'; | |
?> |