{
"name": "Dennis Snell",
"title": "Spline Reticulator",
"company": "Automattic, Inc.",
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generates varying exports of a TIFF image | |
# for different web uses: one high quality | |
# image for Flickr and two scaled-down lower-quality | |
# versions for posting to blogs, Twitter, etc... | |
# | |
# Only operates on TIFF images because I wanted | |
# to preserve as much quality as I could until the | |
# end and also because I don't want to allow a loop | |
# on the output of this file triggering a new run. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Immutable = require( 'immutable' ); | |
var initialData, | |
updatedData, | |
partialData; | |
initialData = { | |
status: 200, | |
image: { | |
height: 64, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"version": "1.1", | |
"creator": { | |
"name": "WebPagetest", | |
"version": "2.18" | |
}, | |
"pages": [ | |
{ | |
"startedDateTime": "2015-09-16T03:00:42.000+00:00", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/php | |
<?php | |
/** | |
* Generates a structured list of files related to an | |
* SVN commit or working directory, or generates the | |
* diff between a particular SVN commit and its parent | |
* or between the working directory and the base revision. | |
* | |
* Calling: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const l = m => console.log( m ); | |
console.clear(); | |
const a = () => { l( 'a ran' ); return 'a'; }; | |
const b = () => { l( 'b ran' ); return 'b'; }; | |
const c = false | |
? a() | |
: b(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const l = m => console.log( m ); | |
function Maybe(v) { | |
this.value = v | |
} | |
Maybe.prototype.typeName = 'Maybe' | |
function Monad() { | |
this.value = null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
const message = `The quick brown fox jumped over the lazy dog. What a jerk!`; | |
const intervals = [ | |
[ 25, 32, 'strong' ], | |
[ 5, 9, 'a' ], | |
[ 26, 29, 'span' ], | |
[ 0, 0, 'img' ], | |
[ 32, 37, 'em' ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const l = m => console.log( m ) | |
const s = m => l( attempt( () => JSON.stringify( m ) ) ) | |
const attempt = f => { try { return f() } catch (e) { return null } } | |
const wpcom = (() => { | |
const extender = a => Object.assign( {}, a, { extend: extend( a ) } ) | |
const reducer = base => ( prev, builder ) => | |
extender( Object.assign( {}, prev, builder( base ), { version: base.version + 1 } ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Router, | |
Route, | |
IndexRoute, | |
Redirect, | |
Link, | |
IndexLink | |
} = ReactRouter | |
const Wrapper = React.createClass( { | |
render() { |
OlderNewer