Skip to content

Instantly share code, notes, and snippets.

View anuzcan's full-sized avatar

Andres Nunez anuzcan

  • Costa Rica
View GitHub Profile
@anuzcan
anuzcan / AT_config_BT.ino
Created January 19, 2022 13:03
JDY-30 bluetooth Module Example
#include <SoftwareSerial.h>
SoftwareSerial mySerial(3, 4); // RX, TX
void setup() {
// put your setup code here, to run once:
mySerial.begin(9600);
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
@anuzcan
anuzcan / .sql
Last active January 8, 2021 04:05
postgis trigger automatic calc area
-- CREATE NEW SCHEMA
CREATE SCHEMA fields;
-- ADD POSTGIS TABLE
CREATE TABLE fields.parcelas (
id serial primary key,
geom geometry(polygon, 4326),
--geom geometry(polygon, 32616),
centre_northing decimal,
centre_easting decimal,