Skip to content

Instantly share code, notes, and snippets.

Avatar

Juho Vepsäläinen bebraw

View GitHub Profile
View stiff_manifesto.md

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.

View send.js
#!/usr/bin/env node
'use strict';
var PORT = 9909;
var HOST = '172.18.12.2';
var LIGHTS = 36;
var dgram = require('dgram');
View rectangle_gradient.js
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]
View lattice_gradient.js
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]]
View gradient_animation.js
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;
View dev-server.js
'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 Aug 29, 2015
Antwar design
View antwar_design.md

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 Aug 29, 2015
SurviveJS - Webpack and React - The Story So Far
View the_story_so_far.md

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

You can’t perform that action at this time.