I hereby claim:
- I am furf on github.
- I am furf (https://keybase.io/furf) on keybase.
- I have a public key ASBc1_hHJft8h6eTvM9D7Y8NxDFW56ds5T0DrMLhp4eFhAo
To claim this, I am signing this object:
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
var Storage = function (type) { | |
function createCookie(name, value, days) { | |
var date, expires; | |
if (days) { | |
date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
expires = "; expires="+date.toGMTString(); |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import classnames from 'classnames/bind'; | |
const now = Date.now(); | |
const PERSPECTIVE_KEY = `__perspective--${now}__`; | |
const DISABLED_KEY = `__perspective--${now}--disabled__`; | |
/** |
I hereby claim:
To claim this, I am signing this object:
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
/** | |
* Introducing fu: furf's functional funpack. | |
* "Putting the F-U back in JS!" | |
* | |
* fu.Array.map([1, 2, 3], a => a * 2) => [2, 4, 6] | |
* fu.String.repeat('fu ', 3) => "fu fu fu" | |
*/ | |
this.fu = (function() { | |
const call = Function.prototype.call; |
function fibDynaInPlace(n) { | |
let dp = [0, 1]; | |
for (let i = 2; i <= n; ++i) { | |
dp = [dp[1], dp[1] + dp[0]]; | |
} | |
return dp[1]; | |
} |
try { | |
/* Paste your entire codebase here */ | |
} catch (e) { | |
window.open('http://stackoverflow.com/search?q=[js]+' + e.message, '_blank'); | |
} |
const Node = { | |
value: null, | |
next: null, | |
}; | |
function createNode(value) { | |
return Object.assign(Object.create(Node), { value }); | |
} | |
function isNode(node) { |
/** | |
* Restrict a value to within specified boundaries. | |
* - If only the `value` is specified, the boundaries are 0 and 1. | |
* - If only the `value` and boundary `a` are specified, the boundaries | |
* are 0 and `a`. | |
* - If the value and both boundaries `a` and `b` are specified, the | |
* boundaries are `a` and `b`. | |
* Clamp does not enforce the proper ordering of the boundaries. | |
* Therefore, clamp(2, 1, 3) and clamp(2, 3, 1) will return the same | |
* result. |
SLACK_API_TOKEN
.SLACK_API_INVITE_URL
.EMAIL_FIELD_NAME
corresponds to the header text of your Google Spreadsheet's email column.onFormSubmit
, From spreadsheet
, On form submit
. Click Save and accept the authorization request to use the script.