pauldub pauldub

View keybase.md

Keybase proof

I hereby claim:

  • I am pauldub on github.
  • I am pauldub (https://keybase.io/pauldub) on keybase.
  • I have a public key whose fingerprint is EF09 728F F09C FC4D 8458 CC29 5DDE 8D84 698E 657A

To claim this, I am signing this object:

View dnode-interface.lua
1 2 3 4 5 6 7 8 9 10
-- This is my current thinkings about the main interface provided by the library and
-- there are a few things I am unable to do at the moment.
 
-- So my problem is about how can I get the function "dnode:connect" and "dnode" callable
-- at the same time. I tried both with tables and functions but without success.
 
-- Helper tcp connect and listen interface.
local dnode = require('dnode').dnode
-- or, depending on how I get around the problem stated above
local dnode = require('dnode')
View client.lua
1 2 3 4 5 6 7 8 9 10
local dnode = require('.')
local utils = require('utils')
 
dnode:connect(7070, function(remote, conn)
print(utils.dump(remote))
remote.zing(33, function(n)
print('n='..n)
end)
 
remote.greet("welcome", "paul", function(greetings)
View proc-info.txt
1 2 3 4 5 6 7 8 9 10
=proc:<0.0.0>
State: Waiting
Name: init
Spawned as: otp_ring0:start/2
Spawned by: []
Started: Wed Mar 12 14:17:11 2014
Message queue length: 0
Number of heap fragments: 0
Heap fragment data: 0
Link list: [<0.3.0>, <0.7.0>, <0.6.0>]
View gist:5383113
1 2 3 4 5 6 7 8 9 10
var fruits = [
'banane',
'mangue',
'orange'
];
 
// L'operateur => c'est un shorthand pour les fonction de ce genre la si on l'appliquait a du JS
 
_.filter(fruits, function (fruit) {
return fruit.match(/^b/)
View gist:4715870
1 2 3 4 5
class ERB
module Util
HTML_ESCAPE = { '&' => '&amp;', '>' => '&gt;', '<' => '&lt;', '"' => '&quot;', "'" => '&#39;' }
end
end
View raskell.rb
1 2 3 4 5 6 7 8 9 10
$stack, $draws = [], {}
 
def method_missing *args
return if args[0][/^to_/]
$stack << args.map { |a| a or $stack.pop }
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :<
end
 
class Array
def +@
View server.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
 
name=webnoir
pidfile=/var/run/$name.pid
 
if [ -f "$pidfile" ]; then
pid=`cat $pidfile`
running=`ps p $pid |wc -l`
if [ $running -eq 1 ]; then
pid=
Something went wrong with that request. Please try again.