Skip to content

Instantly share code, notes, and snippets.

View kylefelipe's full-sized avatar
😀

Kyle Felipe kylefelipe

😀
View GitHub Profile
#include <SerialDisplay.h>
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
char ssid[] = "NOME_DA_REDE"; // sua rede wifi
char password[] = "SENHA_DA_REDE"; // sua senha
char channelId[] = "ID_DO_CANAL"; // ID do seu canal
char apiKey[] = "CHAVE_DA_API"; // chave da API
SerialDisplay displays(14, 12, 10); // (data D5, clock D6, qtde de modulos)
WiFiClientSecure client;
@kylefelipe
kylefelipe / multi2single.py
Created March 3, 2018 03:22 — forked from lptorres/multi2single.py
A simple script that converts shapefiles with multipart polygons into singlepart polygons, and copies the fields of the source shapefile. This script is based on a script by Paolo Corti, found here: https://gist.github.com/anonymous/735330 The original script only converts multipolygons by creating a new feature for each part of a multipolygon. …
import os
from osgeo import gdal, ogr, osr
import sys
def initFields(in_lyr, out_lyr):
#Arbitrarily get the first feature
feat = in_lyr[0]
#loop over each field