I hereby claim:
- I am davidcraig on github.
- I am davidcraig (https://keybase.io/davidcraig) on keybase.
- I have a public key ASCS6tljw6uR0ejp0THG42z5SrUTSOesfVUvfRqJGDfojgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var website = 'http://www.google.co.uk'; | |
var filename = './google.jpg'; | |
var page = require('webpage').create(); | |
page.viewportSize = { | |
width: 1024, | |
height: 592 | |
}; | |
page.open(website, function(status) { |
<?php | |
$composer_src = "https://getcomposer.org/composer.phar"; | |
$phpdoc_src = "http://phpdoc.org/phpDocumentor.phar"; | |
$phpunit_src = "https://phar.phpunit.de/phpunit.phar"; | |
$yes_values = ['', 'y', 'Y', 'yes', 'Yes']; | |
$bin_path = "/usr/local/bin/"; | |
function install_package($name, $package_url) |
<?php | |
$date = ''; // Pass in your date variable here, eg $date = '2014-09-08' | |
$today = new DateTime(); | |
$to = new DateTime($date); | |
$countdown = $today->diff($to); | |
// Seperate variables for days, months, years, etc. | |
$seconds = $countdown->s; | |
$days = $countdown->d; |
<?php | |
$files = [ | |
// Insert Files Here | |
]; | |
$str = ''; | |
function combine_file_contents($filename, $str) | |
{ |
<?php | |
/** | |
* HTML template preprocessing. | |
*/ | |
function MYTHEME_preprocess_html(&$variables) { | |
// Add the page title as a css class to allow for page specific targetting. | |
try { | |
if (!drupal_is_front_page()) { | |
$title = drupal_get_title(); |
Verifying my Blockstack ID is secured with the address 19f4LPMy5SXcgPz6VcBubrkRuGZSvmvSKY https://explorer.blockstack.org/address/19f4LPMy5SXcgPz6VcBubrkRuGZSvmvSKY |
// remove wp version param from any enqueued scripts | |
function enqueueRemoveWpVersion($src) { | |
if ( strpos($src, 'ver=')) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'enqueueRemoveWpVersion', 9999 ); | |
add_filter( 'script_loader_src', 'enqueueRemoveWpVersion', 9999 ); |
const app = new Vue({ | |
el: '#app' | |
}); | |
// Output list of components to the browser devtools. | |
console.log(app.$options.components); |
/* Flat UI Colours: https://flatuicolors.com/palette/defo */ | |
/* CSS Variables */ | |
:root { | |
/* Greens */ | |
--flat-ui-turquoise: #1abc9c; | |
--flat-ui-grean-sea: #16a085; | |
--flat-ui-emerald: #2ecc71; | |
--flat-ui-nephritis: #27ae60; |