Skip to content

Instantly share code, notes, and snippets.

View pipoblak's full-sized avatar

Felipe Ramos da Silva pipoblak

View GitHub Profile
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>"
0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000067cb5b6600000000000000000000000000000000000000000000000000000000000000020a010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000160000000000000000000000000e6a537a407488807f0bbeb0038b79004f19dddfb000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000067f2e73a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001095692a6237d83c6a72f3f5efedb9a670c492230000000000000000000000000000000000000000000000000000000067cb6142000000000000000000000000000000000000000000000000000000
@pipoblak
pipoblak / install-parcel-plugins.sh
Last active February 10, 2023 16:43
Install all parcel-plugins
#!/bin/bash
root_dir=$1
command=$2
for dir in $(find parcel-plugins -type d); do
cd "$dir"
npm install
npm run build
cd ..
# 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
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: jenkins-rbac
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
/*
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
#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
#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();
#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>