Skip to content

Instantly share code, notes, and snippets.

@davemackintosh
davemackintosh / ShareButton.jsx
Created May 17, 2016 21:05 — forked from jamesslock/ShareButton.jsx
ReactJS Share Buttons
import React, { PropTypes } from 'react';
import Button from '../components/Button.jsx';
import Icon from '../components/Icon.jsx';
module.exports = React.createClass({
render: function () {
const {
className,
classNameIcon,
children,
@davemackintosh
davemackintosh / bench.js
Last active January 21, 2016 12:42 — forked from AdriVanHoudt/bench.js
Mini benchmark Hoek.unique vs Set
"use strict"
// used in benchmarks.
const SAMPLE = 5000000
const Hoek = require('hoek')
const array = []
for (let i = 0; i < SAMPLE; ++i) {
array.push(i * Math.floor(Math.random() * (10 - 1 + 1)) + 1)
}