Basic Timeline example with slider
A Pen by Dave Stewart on CodePen.
// function | |
function log(){ console.log.apply(console, Array.prototype.slice.call(arguments, 0)); } | |
// as a shortcut | |
log(1,2,3); | |
// 1 2 3 |
{ | |
// -------------------------------------------------------------------------------- | |
// project | |
"projectName" : "Haven", | |
"projectDescription" : "New Haven site, built using Mixture", | |
// -------------------------------------------------------------------------------- |
/** | |
* Wildcard patterns: | |
* | |
* . - period (converts to regexp \. ) | |
* / - folder delimiter (converts to regexp \/ ) | |
* + - wildcard (converts to regexp .+? ) | |
* * - wildcard (converts to regexp .*? ) | |
*/ | |
var patterns = |
Basic Timeline example with slider
A Pen by Dave Stewart on CodePen.
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Image Load</title> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
</head> | |
<body> |
/** | |
* Comparison of ternary, if/else, switch and hashed-methods to calculate a value | |
* | |
* @author dave stewart | |
* @date weds 16th january 2014 | |
* @see conversation at http://codepen.io/markmiro/blog/awesome-ternary-operator | |
* | |
* Results of 100,000 tests each: | |
* | |
* - testIf : 35 ms = 1.52 x |
SET @slug = "tools"; | |
SET @taxonomy = "category"; # post_tag, category, post_format | |
SELECT | |
post_name, | |
post_title, | |
post_content, | |
post_content_filtered, | |
post_excerpt, | |
post_status, |
# Starts server in current folder | |
tell application "Finder" | |
set currentDir to POSIX path of ((container of (path to me)) as text) | |
end tell | |
tell application "Terminal" to activate | |
tell application "Terminal" | |
do script ("cd '" & currentDir & "'") |
// ==UserScript== | |
// @name Hide unused FreeAgent expense categories | |
// @namespace http://davestewart.uk | |
// @version 0.1 | |
// @description Hides unused categories on FreeAgent Explanation screen | |
// @author Dave Stewart | |
// @match https://davestewart.freeagent.com/bank_accounts/ | |
// @grant none | |
// ==/UserScript== |
REM you can use any resolvable address, such as local.yourdomain.com | |
start "" "http://localhost:8000" | |
php -S localhost:8000 |