Skip to content

Instantly share code, notes, and snippets.

View ricardoccpaiva's full-sized avatar

Ricardo Paiva ricardoccpaiva

View GitHub Profile
{"type":"Topology","arcs":[[[83300,217445],[113,36]],[[83413,217481],[-30,-105]],[[83383,217376],[92,-166]],[[83475,217210],[78,53]],[[83553,217263],[168,49],[40,-7]],[[83761,217305],[134,-145],[8,-83]],[[83903,217077],[-22,-127]],[[83881,216950],[17,-34],[49,-15]],[[83947,216901],[8,-54]],[[83955,216847],[67,-125]],[[84022,216722],[44,-160]],[[84066,216562],[-50,-242]],[[84016,216320],[-56,-41]],[[83960,216279],[-68,-106]],[[83892,216173],[53,-83]],[[83945,216090],[26,-123]],[[83971,215967],[-50,-164]],[[83921,215803],[10,-192]],[[83931,215611],[137,-102]],[[84068,215509],[235,16]],[[84303,215525],[123,67]],[[84426,215592],[147,-28]],[[84573,215564],[97,42],[194,161]],[[84864,215767],[168,69]],[[85032,215836],[42,-10]],[[85074,215826],[61,-79]],[[85135,215747],[42,3]],[[85177,215750],[22,-44]],[[85199,215706],[99,-5]],[[85298,215701],[44,36]],[[85342,215737],[-1,49]],[[85341,215786],[77,47]],[[85418,215833],[42,-4]],[[85460,215829],[37,118]],[[85497,215947],[-19,68]],[[85478,216015],[17,3]],[[85495,216018],[
{
"type": "Topology",
"arcs": [
[
[51489, 52218],
[94, 31]
],
[
[51583, 52249],
[-25, -92]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"name": "Mondego",
"id": "1",
"color": "#FF0055"
},
{
"name": "Douro",
"id": "2",
"color": "#028E76"
@ricardoccpaiva
ricardoccpaiva / barragens_topo.json
Last active October 12, 2023 21:44
barragens_topo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardoccpaiva
ricardoccpaiva / gen_sasha.ex
Created March 14, 2021 18:30
GenServer Timeout
defmodule Caller do
use GenServer
@spec start_link(list(any())) :: GenServer.on_start()
def start_link(default) when is_list(default) do
GenServer.start_link(__MODULE__, default)
end
def call do
Server.call
end
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include "floatToString.h"
Adafruit_BME280 bme;
@ricardoccpaiva
ricardoccpaiva / gist:204d3d3be5eda83be9ee290e87ca2f39
Last active November 17, 2017 15:21
update_urls_be2fc3763dcf429eb6cf843376e469a8
{
"app_id": "be2fc3763dcf429eb6cf843376e469a8",
"urls" : [
{
"type" : "standalone",
"description" : "Standalone URL",
"url" : "https://cwstaging.org/ss/talkdesk"
},
{
"type" : "redirect",
{
"app_id": "c5a9cf20857e402984afaf9d736b47d3",
"assets": [
{
"type": "icon",
"description": "App Icon 2",
"url": "https://www.pngall.com/wp-content/uploads/2016/05/Trollface-PNG.png"
}
]
}
{
"app_id": "c5a9cf20857e402984afaf9d736b47d3",
"emails": [
{
"type" : "support",
"email" : "platform-team@talkdesk.com"
},
{
"type" : "developer",
"email" : "platform-team@talkdesk.com"