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 | |
try { | |
$return = ( bool ) !preg_match('/(^INSERT|^DELETE|^UPDATE)/i', $query); | |
$stmt = $this->_pdo->prepare($query); | |
if ($args->count() !== 0) { | |
for ($args; $args->valid(); $args->next()) { | |
$value = $args->current(); | |
$data = $this->_dataType($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
<?php | |
class foo | |
{ | |
} |
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(doc, undefined){ | |
var e = doc.querySelectorAll('a.tooltip'), s; | |
if(e !== undefined){ | |
for(i=0;i<e.length;++i){ | |
s = document.createElement('span'), | |
s.className='tooltip', | |
s.innerHTML = e[i].getAttribute('title'), | |
s.style.padding = '0 15px'; |
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 System | |
{ | |
public static function run() | |
{ | |
$args = func_get_args(); | |
if (!empty($args)) { |
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(window,document,undefined){ | |
var url,l; | |
el=document.getElementsByClassName('grabHolidayImages'); | |
if(el!=undefined){ | |
l=el.length; | |
for(i=0;i<l;++i){ | |
url = el[i].getAttribute('title'); |
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(window,document,undefined){ | |
var url,l; | |
el=document.getElementsByClassName('grabHolidayImages'); | |
if(el!=undefined){ | |
l=el.length; | |
for(i=0;i<l;++i){ | |
url = el[i].getAttribute('title'); |
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 | |
require 'Slim/Slim.php'; | |
function app() | |
{ | |
static $app; | |
if(gettype($app) != 'object'){ | |
$app = new Slim(); |
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 fs = require('fs'); | |
function processWatch(file, event) { | |
fs.stat(file, function(error, stat){ | |
if(error === null){ | |
switch(event){ | |
case 'rename': | |
// has it actually been changed or is it a node false positive (stupid node bug) | |
if(stat.ctime.toString() != stat.mtime.toString()){ | |
console.log(file + ' has actually been renamed'); |
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 fs = require('fs'); | |
function processWatch(file, event) { | |
fs.stat(file, function(error, stat){ | |
if(error === null){ | |
switch(event){ | |
case 'rename': | |
// has it actually been changed or is it a node false positive (stupid node bug) | |
if(stat.ctime.toString() != stat.mtime.toString()){ | |
console.log(file + ' has actually been renamed'); |
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 | |
/** | |
* Shit for handling IPv6 & mysql storage, @gsphpdev | |
* Bloody headache... remember this Gavin! | |
*/ | |
/** | |
* Only PHP 5.4+ has this function so need to add one if not |
OlderNewer