I hereby claim:
- I am Tin on github.
- I am diamondtin (https://keybase.io/diamondtin) on keybase.
- I have a public key whose fingerprint is F56F 506D C1AA BE4A E06C 9B3D 7076 9DED D0B5 EEB1
To claim this, I am signing this object:
// Say we have routes configuration like | |
const routes = [ | |
{ | |
"childRoutes": [ | |
{ | |
"path": "/" | |
}, | |
{ | |
"path": "/anonymous-landing" | |
}, |
var Url = require('url'); | |
// This ext add support of string-array value in query param | |
// syntax is `?param=[value1, value2]` which return `{ param: ['value1', 'value2'] }` | |
// It turns out that we don't need this at all. Because even hapi.js 8.x support `param=value1¶m=value2` which is more standard! | |
// hapi.js supports param=value1¶m=value2 | |
server.ext({ | |
type: 'onRequest', | |
method: function(request, reply) { |
I hereby claim:
To claim this, I am signing this object:
$ = JQuery | |
$.fn.retina = (options) -> | |
settings = { 'retina-background': false, 'retina-suffix': "@2x" } | |
if options | |
$.extend settings, options | |
preload = (path, callback) -> | |
img = new Image() | |
img.onload = -> | |
callback img |