Skip to content

Instantly share code, notes, and snippets.

Pral2a pral2a

Block or report user

Report or block pral2a

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View station_sensors.md
ID Name Unit RAW?
10 Battery SCK 1.1 (%) N
14 BH1730FVC (Lux) N
15 MiCS-4514-NO2 (kOhm) Y
16 MiCS-4514-CO (kOhm) Y
53 ICS43432 - Noise (dBA) N
55 SHT31 - Temperature (ºC) N
56 SHT31 - Humidity (%) N
58 MPL3115A2 - Barometric Pressure (kPa) N
View pir.ino
int const PIRpin = 2;
unsigned long previousMillis = 0;
const long interval = 2000;
int prevPinStatus = 0;
long presenceCounter = 0;
void setup() {
Serial.begin(9600);
pinMode(PIRpin, INPUT);
View itone_for_esp.ino
/*
ESP8266 example for tone via timer1
Hardware: NodeMCU
2018
tone using Timer
*/
//define ITONE_CYCLE 2500000 // 1 second cycle in 1/16 CPU clock (1/5 µs) for 80 MHz
#define ITONE_CYCLE 5000000 // 1 second cycle in 1/16 CPU clock (1/5 µs) for 160 MHz
@pral2a
pral2a / proxy
Created Sep 17, 2018 — forked from sheerun/proxy
Automatic SOCKS proxy setup through SSH connection on Mac OS X
View proxy
# Script for automatic setup of SOCKS proxy through SSH connection.
# It automatically teardowns SOCKS configuration before stopping.
# It's supposed to work on Mac OS X 10.6+
#
# Author: Adam Stankiewicz (@sheerun)
#
[[ -n "$1" ]] || { echo "Usage: proxy user@example.com"; exit 1; }
# get service GUID and NAME (like Wi-Fi) to set SOCKS proxy
View D
https://drive.google.com/open?id=1aP-eGbe7RuVnANh1Ch2mvUk5OdOmQnU9
View sensordataviz.json
{
"devices": [{
"id": 2300,
"uuid": "85543ca2-e543-4351-9122-98756d50e6b1",
"name": "Orchid Surf Stay Bali",
"description": "Located at the pool area of the hotel ",
"added_at": "2018-04-01T07:32:48Z",
"updated_at": "2018-04-10T00:10:05Z",
"data": {
"recorded_at": "2018-04-12T21:02:47Z",
View hello.blink.44.c
@pral2a
pral2a / README.md
Last active Mar 6, 2018
Download all your HackMDs
View README.md

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 Feb 27, 2018
Leaflet Tests 2
View index.html
<div id="map-canvas" class="map"></div>
@pral2a
pral2a / sc_getdata.pde
Created Apr 19, 2017
Smart Citizen API basic processing example
View sc_getdata.pde
/*
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/
You can’t perform that action at this time.