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.

@eldh
eldh / velocity-transition.coffee
Last active August 29, 2015 14:05
VelocityTransitionGroup
React = require "react"
Style = require 'utils/style-constants'
_ = require 'lodash'
ReactTransitionGroup = React.addons.TransitionGroup
VelocityTransitionGroupChild = React.createClass
displayName: "VelocityTransitionGroupChild"
/**
* @jsx React.DOM
*/
var React = require('react'),
ReactRouter = require('react-router'),
ActiveState = ReactRouter.ActiveState,
Link = ReactRouter.Link;
var MenuItem = module.exports = React.createClass({
@kpuputti
kpuputti / flowtest.ts
Created November 18, 2014 21:04
Testing Flow.
/* @flow */
function wait(time: number): Promise<string> {
return new Promise((resolve, reject) => {
setTimeout(resolve.bind(null, 'resolved in ' + time + 'ms'), time);
});
}
document.addEventListener('DOMContentLoaded', () => {
console.log('start');
anonymous
anonymous / TodoActions.js
Created November 30, 2014 14:51
var Reflux = require('reflux'),
_ = require('underscore'),
api = require('./api');
var TodoActions = Reflux.createActions(['create', 'created', 'errored']);
TodoActions.create.preEmit = function(data) {
data = _.extend({_iid: _.uniqueId('todo_')}, data);
api.createTodo(data)
// API palauttaa saman objektin _iid kanssa
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>asdf asdf asdf asdf</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<!-- { body: cont } from gulpfile.js:41 is rendered here -->

Most active GitHub users in Finland programming in JavaScript

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Thu, 12 Dec 2013 15:54:31 GMT till Fri, 12 Dec 2014 15:54:31 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -&gt; user.followers &gt; 11)

Most active public GitHub users in Finland

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Fri, 13 Dec 2013 15:07:05 GMT till Sat, 13 Dec 2014 15:07:05 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -&gt; user.followers &gt; 11)
@pe3
pe3 / React-0.13-ES2015-SUIT-CSS.md
Last active August 29, 2015 14:15
React 0.13 ES2015 SUIT CSS

to run: webpack-dev-server

suit-loader is deprecated.

should probably use something like rework-webpack-loader but i dont understand webpack or rework well enough.

@staltz
staltz / gist:78140b885f366886d9b5
Last active August 29, 2015 14:19
Terse Cycle.js

Terse Cycle.js

Take Cycle's primal example, on the README:

import Cycle from 'cyclejs';
let {Rx, h} = Cycle;

let name$ = Cycle.createStream(function model(changeName$) {