Skip to content

Instantly share code, notes, and snippets.

View paulosborne's full-sized avatar

Paul Osborne paulosborne

  • Yorkshire, UK
View GitHub Profile
@paulosborne
paulosborne / .block
Last active September 18, 2018 10:44
fresh block
license: mit
@paulosborne
paulosborne / _.md
Last active January 29, 2016 13:00
Runs Per Over
@paulosborne
paulosborne / README.md
Created July 18, 2014 09:25
exporttable?query=select+*+from+15eIgEVTUNlC649ODphJVHXeb4nsOb49WJUlnhw

README is empty

@paulosborne
paulosborne / gist:7640679
Created November 25, 2013 12:40
Hipster indexOf
var message = "hello, how are you Tal?";
if (~message.indexOf('Tal')) {
console.log('found matching text');
}
/**
* @access public
* @return $request
*/
public function createRequest(Zend_Controller_Request_Http $request) {
if ( !isset($this->paymentRequest)) {
$this->setPaymentRequest(new Payment_Service_Commidea_Request());
}
$this->getPaymentRequest()->setCustomer(new Payment_Service_Commidea_Customer(array(
'firstname' => $request->getParam('firstname'),
@paulosborne
paulosborne / gist:2301238
Created April 4, 2012 13:52 — forked from skl/gist:2301078
AssertionTuple with DataSetValue stack
<?php
class DataSetValue
{
const ALPHA_LOWER = 'abcdefghijklmnopqrstuvwxyz';
const ALPHA_UPPER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
const ALPHA_NUMERIC = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
const SYMBOLS = '!@£$%^&*()-=';
const SECURITY_XSS = "'';!--\"<XSS>=&{()}";
@paulosborne
paulosborne / gist:2301100
Created April 4, 2012 13:38 — forked from skl/gist:2301078
AssertionTuple with DataSetValue stack
<?php
class DataSetValue
{
const ALPHA_LOWER = 'abcdefghijklmnopqrstuvwxyz';
const ALPHA_NUMERIC = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
const ALPHA_SYMBOLS = '!@£$%^&*()_+';
const EMAIL_VALID = 'john.smith@testemail.com';