Skip to content

Instantly share code, notes, and snippets.

View NoelDavies's full-sized avatar
🏠
Working from home

Jez NoelDavies

🏠
Working from home
View GitHub Profile
{
"error": "", // error String
"login_successful": true, // did user login successfully
"login_attempts_remaining": 4, // how many login attempts on that account are left
"subscription_valid": true, // is the subscription valid?
"subscriptions_ends": 1234546767, // timestamp
"last_login": 123456789, // timestamp
"auth_token": "098f6bcd4621d373cade4e832627b4f6", // to be sent with every new request
}
<?php
$objSQL->queryBuilder()
->createTable('#__blocks')
->addColumn('id', array(
'type' => 'int',
'length' => 10,
'null' => false,
'auto_inc' => true
))

03rd January 2013

09:00 - 11:25

I was development feature A.

11:25 - 11:40

I was having the best shit ever!

11:40 - 12:00

I sat watching a video of a baby monkey riding on the back of a pig, It's really cute, see: - http://youtube.com/v?watch=IDFKTHELINK

<?php
$route = array(
'label' => 'MyModule_viewThread',
'status' => '1', // 1 for enabled, 0 for disabled
'pattern' => '/path/to/something/:name', // URL for the front end
'arguments' => array(
'module' => 'myModuleName', // module name to use when invoking
'method' => 'myMethod' // Method name to invoke within the above module
// Feel free to add other arguments in here, these will be passed to your method where the var name is the array key
),

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

Verifying that +noeldavies is my Bitcoin username. You can send me #bitcoin here: https://onename.io/noeldavies
@NoelDavies
NoelDavies / routes.php
Created November 21, 2014 17:45
So proud of my teapot
<?php
Route::any('/teapot', function(){
return Response::json([
'data' => [
'message' => 'I\'m a teapot',
'result' => [
'teapot' => true
]
],
'errors' => [],

Keybase proof

I hereby claim:

  • I am NoelDavies on github.
  • I am noeldavies (https://keybase.io/noeldavies) on keybase.
  • I have a public key whose fingerprint is EE73 47EA 4177 2A85 20C2 97F8 D8AE 4B15 0195 2765

To claim this, I am signing this object:

@NoelDavies
NoelDavies / deploy.sh
Last active August 29, 2015 14:21
Releases Script
#!/bin/sh
RELEASES_DIR=~/www/releases
SYMLINK_TO=~/www/current
CURRENT=`date +%Y%m%d%H%M%S`
RELEASE_DIR=$RELEASES_DIR/$CURRENT
## Initiate the new release
mkdir $RELEASE_DIR
cd $RELEASE_DIR
hg clone YOUR_REPO_URL .

ChangeLog

All notable changes to this project will be documented in this file. This project sadly doesn't adhere to Semantic Versioning. but we will soon!

[Unreleased][unreleased]

Added

  • Luhn Algorithm to the validation class
  • Password Strength Metres to each password save input

Fixed