Skip to content

Instantly share code, notes, and snippets.

@pral2a
pral2a / README.md
Last active March 6, 2018 16:15
Download all your HackMDs

How to

Log in to HackMD and download your history file by clicking on the save icon.

Then run python dhmd.py yourHistory.json.

@pral2a
pral2a / index.html
Created February 27, 2018 15:56
Leaflet Tests 2
<div id="map-canvas" class="map"></div>
@pral2a
pral2a / sc_getdata.pde
Created April 19, 2017 17:07
Smart Citizen API basic processing example
/*
SmartCitizen API - Procressing.org basic example
This example demonstrate how to do a basic call to the SmartCitizen API
to retrieve historical data from one device.
For more info:
http://api.smartcitizen.me/
@pral2a
pral2a / README.md
Created March 23, 2017 18:07
Build A Weighting Table

Install

pkg install signal pkg load signal

Output

aweightingtableR.csv aweightingtableI.csv

{
"id": "urn:oc:entity:patras:easybike:bikestation:243:227",
"type": "urn:oc:entitytype:bikeStation",
"TimeInstant": {
"type": "urn:oc:attributeType:ISO8601",
"value": "2017-03-07T17:37:40.662Z",
"metadata": {}
},
"location": {
"type": "geo:point",
@pral2a
pral2a / noise.sh
Created January 23, 2017 17:15 — forked from rsvp/noise.sh
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-04
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)
@pral2a
pral2a / SCK-OSC-MS.pde
Last active November 30, 2016 19:56
SCK OSC
/*
SmartCitizen API - Procressing.org basic example
This example demonstrate how to do a basic call to the SmartCitizen API
to retrieve historical data from one device.
For more info:
http://api.smartcitizen.me/
/*
SmartCitizen API - Procressing.org basic example
This example demonstrate how to do a basic call to the SmartCitizen API
to retrieve historical data from one device.
For more info:
http://api.smartcitizen.me/