This file contains hidden or 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
import { JsonRpcProvider } from "@ethersproject/providers"; | |
import { CurrencyAmount, Percent, Token, TradeType } from "@uniswap/sdk-core"; | |
import { | |
AlphaRouter, | |
SwapOptionsUniversalRouter, | |
SwapType, | |
} from "@uniswap/smart-order-router"; | |
import { UniversalRouterVersion } from "@uniswap/universal-router-sdk"; | |
const provider = new JsonRpcProvider( | |
"https://polygon-mainnet.g.alchemy.com/v2/<KEY>" |
This file contains hidden or 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
0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000067cb5b6600000000000000000000000000000000000000000000000000000000000000020a010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000160000000000000000000000000e6a537a407488807f0bbeb0038b79004f19dddfb000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000067f2e73a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001095692a6237d83c6a72f3f5efedb9a670c492230000000000000000000000000000000000000000000000000000000067cb6142000000000000000000000000000000000000000000000000000000 |
This file contains hidden or 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
#!/bin/bash | |
root_dir=$1 | |
command=$2 | |
for dir in $(find parcel-plugins -type d); do | |
cd "$dir" | |
npm install | |
npm run build | |
cd .. |
This file contains hidden or 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/felipe/.oh-my-zsh" | |
#LOCALE | |
export LC_ALL=en_US.UTF-8 | |
# Set name of the theme to load --- if set to "random", it will |
This file contains hidden or 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
. |
This file contains hidden or 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
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: jenkins-rbac | |
subjects: | |
- kind: ServiceAccount | |
name: default | |
namespace: default | |
roleRef: | |
kind: ClusterRole |
This file contains hidden or 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
/* | |
Projeto Flutuador | |
*/ | |
#include "SoftwareSerial.h" | |
SoftwareSerial bluetooth(2, 3); //TX, RX (Bluetooth) | |
const int pumpPin = 13; // the pin that the LED is attached to | |
int incomingByte; // a variable to read incoming serial data into |
This file contains hidden or 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 <Arduino.h> | |
void serialReadCall() { | |
if (Serial.available() > 0) { | |
String recivedDataStr = ""; | |
char recivedChar; | |
while (Serial.available() > 0) { | |
recivedChar = Serial.read(); | |
if (recivedChar != '\n') { | |
// Concatena valores |
This file contains hidden or 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
#define FASTLED_ESP8266_NODEMCU_PIN_ORDER | |
#define FASTLED_ALLOW_INTERRUPTS 0 | |
#include "FastLED.h" | |
#include <Arduino.h> | |
#include <Thread.h> | |
#include <ThreadController.h> | |
//THREADS | |
ThreadController controll = ThreadController(); | |
Thread threadRead = Thread(); |
This file contains hidden or 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
#define FASTLED_ESP8266_NODEMCU_PIN_ORDER | |
#define FASTLED_ALLOW_INTERRUPTS 0 | |
#include "FastLED.h" | |
#include <Arduino.h> | |
#include <ESP8266mDNS.h> | |
#include <ESP8266WiFi.h> | |
#include <Thread.h> | |
#include <ThreadController.h> | |
#include <WebSocketsServer.h> |
NewerOlder