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 | |
class create_table | |
{ | |
private $query; | |
private $increments = array(NULL, NULL, NULL); | |
private $unsigned; | |
private $nullable = " NOT NULL"; | |
private $engine = array(FALSE, "MyISAM"); | |
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 getElementsByAttribute = function(attribute, context) { | |
var nodeList = (context || document).getElementsByTagName('*'); | |
var nodeArray = []; | |
for (var i = 0, node; node = nodeList[i]; i++) { | |
if ( node.getAttribute(attr) ) nodeArray.push(node); | |
} | |
return nodeArray; | |
}; |
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 generatePassword(length) | |
{ | |
var length = typeof length !== 'undefined' ? length : 8; | |
var charset = "abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", | |
retVal = ""; | |
for (var i = 0, n = charset.length; i < length; ++i) | |
{ | |
retVal += charset.charAt(Math.floor(Math.random() * n)); | |
} | |
return retVal; |
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 /** By, Travis van der Font - 2014 **/ | |
// -- hide this - logger function - log the even how you wish --// | |
class logger | |
{ | |
protected static function call_pie_log($arguments) | |
{ | |
echo '<br/>log a bake for pie<br/>'; | |
var_dump($arguments); |
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 | |
interface imethods | |
{ | |
public function add($x, $y); | |
public function sub($x, $y); | |
} | |
class methods | |
{ |
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 | |
$aHeader = array_map(function($key) | |
{ | |
return str_replace(' ', '', $key); | |
}, $aHeader); | |
foreach(aHeader as $key => $value) |
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
xCharts: a D3-based library for building custom charts and graphs | |
http://tenxer.github.io/xcharts/examples/ | |
AM Charts - JavaScript Charts v.3 | |
http://www.amcharts.com/ |
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 donutChart; | |
(function() { | |
var w = 500, | |
h = 300, | |
r = 100, | |
innerRadius = 80, | |
transitionsDuration = 1000, | |
transitionsDelay = 250, | |
percentageTextSize = '2.0rem'; |
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 | |
/** | |
* AyeEmtract a class that crawls pages and | |
* then searches for email addresses using curl in parallel. | |
* | |
* PHP version >= 5.x | |
* | |
* @category PHP | |
* @author PANTUTS | |
* @license http://www.gnu.org/licenses/gpl.txt |
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 | |
/** | |
* iCalendar Feed | |
*/ | |
class ICAL_Export | |
{ | |
// date format (WARNING: donnot change unless necessary) | |
const DATE_FORMAT = 'Y-m-d'; |
OlderNewer