I hereby claim:
- I am doowb on github.
- I am doowb (https://keybase.io/doowb) on keybase.
- I have a public key whose fingerprint is 6A11 A0F5 F69C A7E8 8FAE 178E 928A A2F2 AB9B EF4B
To claim this, I am signing this object:
| var radius = function (area) { | |
| // make the area bigger so we get better values for small areas | |
| area = area * 10000; | |
| // a = PI*r^2 => a/PI = r^2 => sqrt(a/PI) = r | |
| return Math.ceil(Math.sqrt(area/Math.PI)); | |
| }; | |
| var r = radius(21000); | |
| var d = r*2; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script type="text/x-handlebars" id="tmpl"> |
| 'use strict'; | |
| var _ = require('lodash'); | |
| var path = require('path'); | |
| module.exports = function(grunt) { | |
| // load the recipe template from the desired path | |
| var recipeTemplate = grunt.file.read('./src/templates/pages/recipe.hbs'); | |
| // expand the data files and loop over each filepath |
| var Assemble = require('assemble'); | |
| var Permalinks = require('assemble-permalinks'); | |
| var siteConfig = { | |
| options: { | |
| assets: '_gh_pages/public/', | |
| layout: 'default', | |
| ext: '.html', | |
| }, | |
| src: 'src/templates/pages/*.hbs', |
| var normalize = require('normalize-config'); | |
| var plasma = require('plasma'); | |
| var _ = require('lodash'); | |
| function Assemble (config) { | |
| // normalize the config object | |
| this.config = normalize(config); | |
| // store a reference to the config options on assemble |
| module.exports = function (assemble) { | |
| var plugin = function (params, next) { | |
| // do something | |
| next(); | |
| }; | |
| plugin.options = { | |
| event: 'page:before:render' | |
| }; | |
| return { |
| var data = [ | |
| { | |
| 'Sellside.foo': ['path/to/foo-data.json'], | |
| 'Sellside.bar': ['path/to/bar-data.json'] | |
| } | |
| ]; | |
| var results = { | |
| Sellside: { | |
| foo: { /* foo-data.json */ }, |
I hereby claim:
To claim this, I am signing this object:
| const findup = require('findup-sync'); | |
| const koalas = require('koalas'); | |
| module.exports = function (search, paths) { | |
| var find = function (path) { | |
| return findup(search, {cwd: path, nocase: true}); | |
| }; | |
| return koalas.apply(null, paths).use(find).value(); | |
| }; |
| var expects = function(config, spec) { | |
| for(var k in spec) { | |
| if (config[k] === 'undefined') { | |
| config[k] = spec[k]; | |
| } | |
| } | |
| }; | |
| var spec = { |