Skip to content

Instantly share code, notes, and snippets.

View henrikhaugboelle's full-sized avatar

Henrik Haugbølle henrikhaugboelle

View GitHub Profile
# Just testing this lovely service. I wonder if it's any good!
f = (x) ->
x * 2
# hmm ..
class User
constructor: () ->
@name = 'tomahaug'
new User()
var err = function(callback) {
return function(req, res, next) {
try {
callback(req, res, next);
} catch (e) {
// handle error
}
};
};

Analog IO

Turning coffee into code. Literally.

Analog IO, sounds weird, what is it?

Analog IO is a brand new coding community at ITU. We meet every thursday afternoon in Cafe Analog and develop awesome projects. Analog IO is a voluenteer organization spawned from Cafe Analog and we focus on developing solutions to problems that students and student driven organizations at ITU can benefit from.

Alright, less weird, more awesome, how do I help?

  • Join us in developing one or more of the awesome projects described at this page - we will provide free coffee in return of contribution!
  • Drop by and pitch a project that will make life at ITU better or easier for students and student driven organizations!

To add a new networkx algorithm section, remember to hook up the section in the following files:

file
lines to add

networkx/algorithms/init.py
from networkx.algorithms.coloring import *
import networkx.algorithms.coloring

networkx/algorithms/coloring/init.py

Get source from repository

git pull origin master

Add new files

` git add *

import imaplib
from email.parser import HeaderParser
user = ""
pwd = ""
m = imaplib.IMAP4_SSL("imap.gmail.com")
m.login(user,pwd)
m.select('[Gmail]/All Mail')
import imaplib
from email.parser import HeaderParser
import email
import time
user = ""
pwd = ""
m = imaplib.IMAP4_SSL("imap.gmail.com")
m.login(user,pwd)
module
.filter 'ago', ->
minute = 60
hour = minute * 60
day = hour * 24
week = day * 7
month = day * 30
year = day * 365
return (date) ->
# checks if the amount of different timestamps are equal
# uses the first timestamp to compare to the rest of the timestamp
# ... be patient, the script takes some time to run
f = open('sorted100M.csv')
line = f.readline()
count = 0
d = dict()
while line: