Skip to content

Instantly share code, notes, and snippets.

Bjørn Gilstad bjorngi

  • Acando
Block or report user

Report or block bjorngi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View datastuff.js
// Two requests
const req1 = [{
id: 1,
data: 'data',
}, {
id: 2,
data 'data2',
}]
const req2 = [{
View makepaperclip.js
// 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 Jan 13, 2016
spoonman
View _.md
@bjorngi
bjorngi / _.md
Last active Dec 24, 2015
beerquest2015
View _.md
View numberCounter.jsx
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 Dec 16, 2015
tree-rect
View _.md
@bjorngi
bjorngi / _.md
Last active Dec 14, 2015
formatdata
View _.md
@bjorngi
bjorngi / source.js
Last active Jan 16, 2018
Moving xAxis along with line
View source.js
(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 Sep 15, 2015
worktimer
View _.md
View _.md
You can’t perform that action at this time.