I hereby claim:
- I am craigchilds94 on github.
- I am arcraig (https://keybase.io/arcraig) on keybase.
- I have a public key ASD9qZ1FWPt1mdf02cJu9ccRuq9vNivraONG7IBLkxSzKQo
To claim this, I am signing this object:
// | |
// Primary breakpoints | |
// =================== | |
// Define the projects breakpoints here. Some sensible defualts are included. | |
// | |
/** | |
* Less than | |
* ========= | |
* |
<?php | |
/** | |
* Include a php file, and return the | |
* parsed content. Allows you to use php | |
* files instead of custom templating | |
* engines such as blade. | |
* | |
* Takes an array of data to pass to the included | |
* file and calls extract() on it. |
(function () { | |
'use strict'; | |
var cluster = require('cluster'), | |
http = require('http'), | |
os = require('os'), | |
/* | |
* ClusterServer object |
<?php | |
/** | |
* Only get the values for keys which | |
* exist in the array. | |
* | |
* Example: array_only_keys(['a' => 'b', 'c' => 'd'], ['a']); // returns ['a' => 'b'] | |
* | |
* @param Array $haystack The array you want values from | |
* @param Array|String $keys Array of keys, or a key which you want from the haystack |
<?php | |
/** | |
* Work out time taken to run a block, give it a nice name/label | |
* and output a nice message. | |
* | |
* @param string $name | |
* @param callable $call | |
* @return mixed | |
*/ |
/** | |
* Templater instance, pass in the selector for your template. And | |
* a key'd object with your data. Use "{{ key }}" in your template | |
* to replace values from this array. | |
*/ | |
function Templater(template, data) { | |
this.template = template; | |
this.html = $(template).html(); | |
this.data = data; | |
/** | |
* Duplicate a row by the click of an | |
* element. Pass a callback to grab the new | |
* row and handle it how you please. | |
* | |
* @param {string} selector | |
* @param {Function} callback | |
*/ | |
function Duplicator(selector, callback) { | |
this.selector = selector; |
import ( | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
"encoding/json" | |
"fmt" | |
) | |
// The model. | |
type User struct { | |
gorm.Model |
<?php | |
if (!function_exists('dea_validate')) { | |
/** | |
* Validate a provided DEA number is valid. | |
* | |
* @param string $deaNumber | |
* @return boolean | |
*/ |
I hereby claim:
To claim this, I am signing this object: