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
# vim:set ft=sh | |
# MODULES | |
# The following modules are loaded before any boot hooks are | |
# run. Advanced users may wish to specify all system modules | |
# in this array. For instance: | |
# MODULES=(piix ide_disk reiserfs) | |
MODULES=() | |
# BINARIES | |
# This setting includes any additional binaries a given user may |
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 sendEmail($to,$from,$subject,$message){ | |
// To send HTML mail, the Content-type header must be set | |
$headers = 'MIME-Version: 1.0' . "\r\n"; | |
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; | |
// Create email headers | |
$headers .= 'From: '.$from."\r\n". | |
'Reply-To: '.$from."\r\n" . | |
'X-Mailer: PHP/' . phpversion(); |
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 scrollToTop = function(el, speed) { | |
/** | |
* Function takes in the element to scroll to, as well as | |
* the speed in which the document should scroll animate to the top. | |
* | |
* Default is window top, and slow (respectively). Time (in milliseconds is allowed) | |
*/ | |
"use strict"; | |
var position; |
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
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> | |
<!-- Identify your business so that you can collect the payments. --> | |
<input type="hidden" name="business" value="[email protected]"> | |
<!-- Specify a Buy Now button. --> | |
<input type="hidden" name="cmd" value="_xclick"> | |
<!-- Specify details about the item that buyers will purchase. --> | |
<input type="hidden" name="item_name" value="Hot Sauce-12 oz. Bottle"> |
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( $ ) { | |
$.fn.showLinkLocation = function() { | |
this.filter( "a" ).each(function() { | |
var link = $( this ); | |
link.append( " (" + link.attr( "href" ) + ")" ); | |
}); | |
return this; | |
}; |
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
// returns a hyphenated creditcard number | |
function creditCardFilter($str){ | |
$new = str_replace('/\D+/g','',$str); | |
return chunk_split($new,4,'-'); | |
} |
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 pretty($printThis) | |
{ | |
print("<pre>"); | |
print_r($printThis); | |
print("</pre>"); | |
} |
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
Object.size = function(obj) { | |
var size = 0, key; | |
for (key in obj) { | |
if (obj.hasOwnProperty(key)) size++; | |
} | |
return size; | |
}; |