Skip to content

Instantly share code, notes, and snippets.


Kimmo Brunfeldt kimmobrunfeldt

View GitHub Profile
kimmobrunfeldt /
Last active Aug 29, 2015
Simple blog REST API with Eve Install Mongo and Eve and you're good to go!
1. Install Mongo
2. pip install eve
3. python
# Mongo setup
MONGO_PORT = 27017
MONGO_USERNAME = 'test-blog'
MONGO_PASSWORD = 'test-blog'
kimmobrunfeldt /
Last active Aug 29, 2015
How I setup my Mac for web development

How to setup OS X for web development

  • Download Command Line Tools for your OS X version from:

  • Install Homebrew, it's a third party package manager for OS X:

  • System preferences

    • Set key repeat fast and delay minimum from system preferences
    • Set screen auto dimming off
  • Disable rubber band scrolling

kimmobrunfeldt / johtika.sql
Created Apr 8, 2014
Find your points in Johtika
View johtika.sql
SELECT * from Opiskelija, Suoritus, Suorite WHERE SUORITUS.Opiskelija = Opiskelija.Opnum AND Suoritus.Suorite = Suorite.SuoriteID AND Opnum='XXXXXX';
# -*- coding: UTF-8 -*-
# Written by Kimmo Brunfeldt
# IRClog stats generator.
import re
import sys
import time
import logger
kimmobrunfeldt / hwoteams.js
Last active Aug 29, 2015
Parse, show only subset of teams and write output to file
View hwoteams.js
// Install:
// npm install lodash request cheerio
// Usage:
// nodejs hwoteams.js
var request = require('request')
, cheerio = require('cheerio');
var fs = require('fs');
var _ = require('lodash');
kimmobrunfeldt /
Last active Aug 29, 2015
Summary of audio/media support in Windows Phones' Internet Explorer(versions 9-11)
View timeline.js
// Usage:
// npm install underscore
// node timeline.js
var _ = require('underscore');
var TimelineGrid = (function(options) {
Module to help positioning boxes on a vertical timeline.
Boxes are added as tightly as possible while keeping chronological
kimmobrunfeldt / index.html
Created Nov 29, 2014
Particles.js example
View index.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
#particles {