Skip to content

Instantly share code, notes, and snippets.

View nathanvda's full-sized avatar

Nathan Van der Auwera nathanvda

View GitHub Profile
@nathanvda
nathanvda / drukken-5sec.csv
Last active March 14, 2017 14:34
Example reading csv (PPS)
DT P1401W P1801W P2201W P2601W P3001W P3601W
03/01/2017 00:00:00 85.862503 85.631248 85.406258 83.643745 82.937500 83.243752
03/01/2017 00:00:05 85.862503 85.643745 85.431252 83.643745 82.937500 83.243752
03/01/2017 00:00:10 85.856247 85.643745 85.418747 83.637497 82.943748 83.250000
03/01/2017 00:00:15 85.856247 85.643745 85.431252 83.643745 82.949997 83.243752
03/01/2017 00:00:20 85.856247 85.637497 85.424995 83.637497 82.943748 83.243752
03/01/2017 00:00:25 85.856247 85.637497 85.418747 83.637497 82.937500 83.250000
03/01/2017 00:00:30 85.856247 85.631248 85.437500 83.643745 82.943748 83.250000
03/01/2017 00:00:35 85.856247 85.637497 85.437500 83.643745 82.943748 83.256241
03/01/2017 00:00:40 85.856247 85.625008 85.412506 83.637497 82.943748 83.256241
@nathanvda
nathanvda / drukken-5sec.csv
Created March 14, 2017 14:05
Example reading csv (PPS)
We can't make this file beautiful and searchable because it's too large.
DT,P1401W,P1801W,P2201W,P2601W,P3001W,P3601W
03/01/2017 00:00:00,85.862503,85.631248,85.406258,83.643745,82.937500,83.243752
03/01/2017 00:00:05,85.862503,85.643745,85.431252,83.643745,82.937500,83.243752
03/01/2017 00:00:10,85.856247,85.643745,85.418747,83.637497,82.943748,83.250000
03/01/2017 00:00:15,85.856247,85.643745,85.431252,83.643745,82.949997,83.243752
03/01/2017 00:00:20,85.856247,85.637497,85.424995,83.637497,82.943748,83.243752
03/01/2017 00:00:25,85.856247,85.637497,85.418747,83.637497,82.937500,83.250000
03/01/2017 00:00:30,85.856247,85.631248,85.437500,83.643745,82.943748,83.250000
03/01/2017 00:00:35,85.856247,85.637497,85.437500,83.643745,82.943748,83.256241
03/01/2017 00:00:40,85.856247,85.625008,85.412506,83.637497,82.943748,83.256241

Vier opeenvolgende keren de lijst van MapRequesten vragen werkt afwisselend wel en dan weer niet:

>> klip.get('api/ws/klip/v1/MapRequest/Una', { }).body
=> [{"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/052424c2-ae8e-4f5e-8ebb-630189a0fe16/una"}, {"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/fdebdab2-360e-4f50-9368-647e64546989/una"}, {"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/9acc3654-06af-4587-b983-9116fc5eaa08/una"}, {"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/30aee6f2-a111-43ed-8e86-8149cc81a8cf/una"}, {"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/1914a5df-2d64-4709-9a7a-a60b2466b24e/una"}, {"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/e04aebbd-2ea8-4cd5-8030-2a3fd9ae0911/una"}, {"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/bd4b6894-b1df-429f-94a8-36ea2d09da45/una"}, {"MapRequest"=>"https://klip.agiv.be/api/ws/klip/v1/maprequest/28483ccf-1bd9-4dae-8504-86bd98541f9c/una"}, {"Map