Here's a list of useful REPLs if you just wanna mess around with stuff online.
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
<html> | |
<head> | |
<title>Client-Side Event Binding with HandleBards POC</title> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" /> | |
<!--[if IE]> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<![endif]--> | |
<style type="text/css"> | |
#logger { | |
height: 250px; |
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
export default function compose<T>(...functions: { (x: T): T }[]) { | |
return x => functions.reduce((previous, current) => x => current(previous(x)))(x); | |
} | |
/* usage: | |
const composed = compose<number>(x => x * 2,x => x * 3, x => x * 4); | |
console.log(composed(4)) //96 | |
or |
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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2016-01-21T08:54:47.1813619</Date> | |
<Author>YOUR_DOMAIN\YOUR_USER</Author> | |
<Description>Runs local-npm a local version of npm that grabs packages from it's server if not already fetched. This essentially allows you to run npm offline, assuming you've installed the packages you need at least once.</Description> | |
</RegistrationInfo> | |
<Triggers> | |
<LogonTrigger> | |
<Enabled>true</Enabled> |
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
Show hidden characters
{ | |
"rules": { | |
"align": [ | |
true, | |
"parameters", | |
"arguments", | |
"statements" | |
], | |
"ban": false, | |
"class-name": true, |
I hereby claim:
- I am nickytonline on github.
- I am nickytonline (https://keybase.io/nickytonline) on keybase.
- I have a public key ASBEWNdvh5sdoMlT4StLMkid8-ZPj6_B1YaHLB15-j9SHwo
To claim this, I am signing this object:
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
import React, { Component } from 'react'; | |
import Sentry from '../services/sentry'; | |
import DevError from '../components/DevError'; | |
const DEV_ENV = 'development'; | |
const CaptureError = ({ | |
ComponentToWrap, | |
ErrorComponent, | |
environment = process.env.NODE_ENV, |
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
import test from 'ava'; | |
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import CaptureError from '../CaptureError'; | |
const render = ({ | |
ComponentToWrap, | |
ErrorComponent, | |
environment = 'development', | |
}) => { |
OlderNewer