Skip to content

Instantly share code, notes, and snippets.

View boyvanduuren's full-sized avatar

Boy van Duuren boyvanduuren

View GitHub Profile

Keybase proof

I hereby claim:

  • I am boyvanduuren on github.
  • I am boyvanduuren (https://keybase.io/boyvanduuren) on keybase.
  • I have a public key ASDg90yQdxHLx6-pSFXEVEQRNb0UwcYPjt0TJCA1bh5QJAo

To claim this, I am signing this object:

/**
* This function computes for each unique character in the list `chars` the number of
* times it occurs. For example, the invocation
*
* times(List('a', 'b', 'a'))
*
* should return the following (the order of the resulting list is not important):
*
* List(('a', 2), ('b', 1))
*/
@boyvanduuren
boyvanduuren / gcd
Last active August 29, 2015 13:58
Euclid's algorithm in Befunge
&& :v: <
vp02_$.@
>20g\20g%^
@boyvanduuren
boyvanduuren / gist:7318418
Last active December 27, 2015 11:29
Elasticsearch/logstash: find all within time range (epoch is in milliseconds)
curl -XGET 'http://localhost:9200/_search?pretty' -d '{
"query": {
"filtered": {
"query": {
"query_string": {
"query": "*"
}
},
"filter": {
"range": {