I hereby claim:
- I am bchapuis on github.
- I am bchapuis (https://keybase.io/bchapuis) on keybase.
- I have a public key whose fingerprint is E846 81BD 2790 6AB3 8BB0 E305 7E80 BB87 0896 71C1
To claim this, I am signing this object:
-- https://www.postgresql.org/docs/current/queries-with.html | |
DROP TABLE IF EXISTS vertex; | |
DROP TABLE IF EXISTS edge; | |
CREATE TABLE IF NOT EXISTS vertex ( | |
id int primary key | |
); | |
CREATE TABLE IF NOT EXISTS edge ( |
SELECT id, | |
array_to_json(array_remove(array_agg(a), NULL)) as a, | |
array_to_json(array_remove(array_agg(b), NULL)) as b, | |
array_to_json(array_remove(array_agg(c), NULL)) as c | |
FROM ( | |
SELECT jsonb_path_query_first(value, '$[*].id') as id, | |
jsonb_path_query(value, '$[*].a') as a, | |
jsonb_path_query(value, '$[*].b') as b, | |
jsonb_path_query(value, '$[*].c') as c | |
FROM ( |
id: 'openstreetmap' | |
center: | |
lon: 9.5554 | |
lat: 47.1660 | |
zoom: 14 | |
bounds: | |
minLon: 9.471078 | |
maxLon: 9.636217 | |
minLat: 47.04774 | |
maxLat: 47.27128 |
id: 'openstreetmap' | |
center: | |
lon: 6.5743 | |
lat: 46.5189 | |
zoom: 14 | |
bounds: | |
minLon: 5.8358 | |
minLat: 45.6591 | |
maxLon: 10.9794 | |
maxLat: 47.8700 |
def groupConsecutive[T](list: List[T]) : List[List[T]] = list match { | |
case Nil => Nil | |
case h::t => | |
val segment = list.takeWhile(h ==) | |
segment :: groupConsecutiveStates(list.drop(segment.length)) | |
} |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"path/filepath" |
I hereby claim:
To claim this, I am signing this object:
iptables -t nat -F | |
iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 -j | |
REDIRECT --to-ports 9000 | |
iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT | |
--to-port 9000 |
function decodeUrlParameter(str) { | |
return decodeURIComponent((str+'').replace(/\+/g, '%20')); | |
} |
function decodeUrlParameter(str) { | |
return decodeURIComponent((str+'').replace(/\+/g, '%20')); | |
} | |
function getUrlParameter(name) { | |
return decodeUrlParameter(decodeURI( | |
(RegExp(name + '=' + '(.*?)(&|$)').exec(location.search)||[,null])[1] | |
)); | |
} |