Skip to content

Instantly share code, notes, and snippets.

// Two requests
const req1 = [{
id: 1,
data: 'data',
}, {
id: 2,
data 'data2',
}]
const req2 = [{
// JavaScript console solution for http://www.decisionproblem.com/paperclips/index2.html
(() => {
setInterval(() => document.getElementById('btnMakePaperclip').click(), 1)
setInterval(() => document.getElementById('btnBuyWire').click(), 10000)
})()
@bjorngi
bjorngi / _.md
Last active January 13, 2016 18:22
spoonman
@bjorngi
bjorngi / _.md
Last active December 24, 2015 08:58
beerquest2015
import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
class NumberCounter extends React.Component {
componentWillMount() {
this.setState({
number: this.props.number
});
}
@bjorngi
bjorngi / _.md
Last active December 16, 2015 10:41
tree-rect
@bjorngi
bjorngi / _.md
Last active December 14, 2015 13:28
formatdata
@bjorngi
bjorngi / source.js
Last active November 24, 2021 01:40
Moving xAxis along with line
(function() {
var n = 243,
duration = 750,
now = new Date(Date.now() - duration),
count = 0,
data = d3.range(n).map(function() { return 0; });
var margin = {top: 6, right: 0, bottom: 20, left: 40},
width = 960 - margin.right,
@bjorngi
bjorngi / _.md
Last active September 15, 2015 06:52
worktimer
@bjorngi
bjorngi / _.md
Last active August 29, 2015 14:25
fml