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.

@eldh
eldh / velocity-transition.coffee
Last active Aug 29, 2015
VelocityTransitionGroup
View velocity-transition.coffee
React = require "react"
Style = require 'utils/style-constants'
_ = require 'lodash'
ReactTransitionGroup = React.addons.TransitionGroup
VelocityTransitionGroupChild = React.createClass
displayName: "VelocityTransitionGroupChild"
View MenuItem.js
/**
* @jsx React.DOM
*/
var React = require('react'),
ReactRouter = require('react-router'),
ActiveState = ReactRouter.ActiveState,
Link = ReactRouter.Link;
var MenuItem = module.exports = React.createClass({
View flowtest.ts
/* @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');
View _template.html
<!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 -->
View TodoActions.js
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
View gist:b23b15d2859e6cf5386b

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) -> user.followers > 11)
View gist:ae7ebf7d91759a26b89d

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) -> user.followers > 11)
@pe3
pe3 / React-0.13-ES2015-SUIT-CSS.md
Last active Aug 29, 2015
React 0.13 ES2015 SUIT CSS
View React-0.13-ES2015-SUIT-CSS.md

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.

View gist:78140b885f366886d9b5

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$) {