This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "openssl" | |
require "time" | |
begin | |
require "origami" | |
rescue LoadError | |
abort "origami not installed: gem install origami" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just insert on .gitconfig: | |
nrb = "!f() { git push -u origin $(git rev-parse --abbrev-ref HEAD):$1; }; f" | |
And then, when on a local branch and want to push to a new remote branch called, say, 'test': | |
$ git nbr test | |
Total 0 (delta 0), reused 0 (delta 0) | |
To <your remote here> | |
* [new branch] work -> test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
OlderNewer