I hereby claim:
- I am dasniko on github.
- I am dasniko (https://keybase.io/dasniko) on keybase.
- I have a public key ASAIPZokcnTYoxb9pRpue-YRXawuvDpwpX7mc_Qp_6gLuQo
To claim this, I am signing this object:
var http = require("http"), | |
redis = require("redis"); | |
var redisClient = redis.createClient(6379, "127.0.0.1", {}); | |
var TTL = 300; | |
var server = http.createServer(function(request, response) { | |
var headers = {"Content-Type": "text/plain"}; | |
if (request.method.toUpperCase() !== "POST") { | |
response.writeHead(405, headers); |
I hereby claim:
To claim this, I am signing this object:
This list is subject to change at any time, just as tools an my personal view changes.
Additionally, these are just my the ones I prefer, does not mean that I don't know nor like others!
package jug.da.lottery; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
public class Lottery { |
package de.nko.benchmark; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* @author Niko Koebler, http://www.n-k.de, @dasniko | |
* | |
*/ |
var fibonacci = function() { | |
var i; | |
var fib = []; | |
fib[0] = 1; | |
fib[1] = 1; | |
for(i = 2; i <= 100; i++) { | |
fib[i] = fib[i-2] + fib[i-1]; | |
} | |
fib; | |
}; |
var express = require('express') | |
var app = express() | |
// respond with "Hello World!" on the homepage | |
app.get('/', function (req, res) { | |
res.send('<h1>Hello JavaScript!</h1>'); | |
}); | |
// accept POST request on the homepage | |
app.post('/', function (req, res) { | |
res.send('Got a POST request</h1>'); |
var interval = 50; | |
startRaffle = function() { | |
[LED1, LED2, LED3].forEach(function(pin) { | |
setInterval(function() { | |
digitalWrite(pin, Math.random() > 0.5); | |
}, interval); | |
}); | |
}; |