Skip to content

Instantly share code, notes, and snippets.

View bebraw's full-sized avatar

Juho Vepsäläinen bebraw

View GitHub Profile

Manifesto for Stiff Software Development

We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value:

  • Processes and tools over individuals and interactions
  • Comprehensive documentation over working software
  • Contract negotiation over customer collaboration
  • Following a plan over responding to change

That is, while there is value in the items on the right, we value the items on the left more.

@bebraw
bebraw / js_shopping_carts.md
Created February 19, 2014 07:56
JavaScript shopping carts. If I'm missing some, please let me know.
@bebraw
bebraw / send.js
Last active August 29, 2015 13:57
#!/usr/bin/env node
'use strict';
var PORT = 9909;
var HOST = '172.18.12.2';
var LIGHTS = 36;
var dgram = require('dgram');
main();
function main() {
var canvas = document.getElementById('canvas');
quadGradient(canvas, {
topLeft: [1, 0, 1, 1],
topRight: [0, 0, 0, 1],
bottomLeft: [0, 1, 0, 1],
bottomRight: [0, 1, 1, 1]
main();
function main() {
var canvas = document.getElementById("canvas");
latticeGradient(canvas, [
[[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 1], [1, 0, 0, 1]],
[[0, 1, 0, 1], [0, 0, 1, 1], [1, 0, 0, 1], [0, 1, 0, 1]],
[[0, 0, 1, 1], [1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 1]],
[[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 1], [1, 0, 0, 1]]
main();
function main() {
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext('2d');
animate(function(i) {
var matrix = generateMatrix(20, 20, function(x, y, xlen, ylen) {
var fac = fromBoundToBound(0, 1, i / 2000);
var a = 200000;
'use strict';
var express = require('express');
var webpack = require('webpack');
var webpackDevMiddleware = require('webpack-dev-middleware');
var config = require('./config/webpack.config');
main();
@bebraw
bebraw / antwar_design.md
Last active August 29, 2015 14:16
Antwar design

Moved to Antwar wiki

Antwar Design

In this document I'll go through a possible design/features for Antwar based on my personal needs. My goal is to port my blog (~200 posts) to run on top of Antwar. The plan is to host it on top of gh-pages. I'll want to reach feature parity with the current solution and then improve on that.

Features of the current blog

The current blog is quite simple. There's an index listing some of the recent posts (about five) in their entirety. In addition it is possible to navigate to a page of a specific post or tag.

@bebraw
bebraw / the_story_so_far.md
Last active August 29, 2015 14:24
SurviveJS - Webpack and React - The Story So Far

IMPORTANT! This post has been moved to http://survivejs.com/blog/the-story-so-far/ . Feel free to comment there.

SurviveJS - Webpack and React - The Story So Far

Given I'm a first time author I've done my fair share of mistakes with SurviveJS - Webpack and React. It was an attempt to change the direction of my career. Being a subcontractor's subcontractor provides income, sure, but was a dead end for me with no room to grow in an economy that keeps getting tougher. Interestingly the book has garnered a lot of attention and I believe some have found it useful. It has been bit of a disaster economically and it's hard to imagine I could keep a business like this up for long if something doesn't change.

Why SurviveJS - Webpack and React Was Written?

The first steps towards the book were taken at the end of January. I happened upon [a blog post about Webpack by Christian Alfoni](https://christianalfoni.github.io/javascript/2014/12/13/did-you-know-webpack-and-react-is-awesome.htm