Skip to content

Instantly share code, notes, and snippets.

View andrewn6's full-sized avatar

Andrew Nijmeh andrewn6

  • Toronto
  • 02:31 (UTC -07:00)
View GitHub Profile
@andrewn6
andrewn6 / Brewfile
Created March 14, 2022 02:32
andrews latest brewfile
tap "artginzburg/tap"
tap "clangen/musikcube"
tap "cmacrae/formulae"
tap "derailed/k9s"
tap "discoteq/discoteq"
tap "elastic/tap"
tap "ethereum/ethereum"
tap "felixkratz/formulae"
tap "filosottile/musl-cross"
tap "gleich/tap"
@andrewn6
andrewn6 / app.tsx
Last active April 26, 2022 22:24
code
e
const int dischargePin = 10; // Digital output pin for controlling transistor
const int voltagePin = A0; // Analog input pin for measuring battery voltage
float dischargeCurrent = 0.80; // Specify the discharge current in amperes
int pulseDuration = 900000; // Specify the pulse duration in milliseconds
bool dischargeComplete = false; // Flag variable to track pulse discharge completion
void setup() {
pinMode(dischargePin, OUTPUT);
pinMode(voltagePin, INPUT);
@andrewn6
andrewn6 / test.py
Created April 29, 2024 23:28
stuff
import requests
from datetime import datetime, timedelta
import pandas as pd
API_KEY="23D47252-3223-46EA-8F48-161416F44F57"
SYMBOL_IDS = ['BITSTAMP_SPOT_BTC_USD']
end_date = pd.Timestamp(datetime.now())
start_date = pd.Timestamp(end_date - timedelta(days=90))
@andrewn6
andrewn6 / monitor.py
Created June 25, 2024 20:51
crypto.py
import asyncio
import json
import time
from datetime import datetime, timedelta
from solana.rpc.async_api import AsyncClient
from solders.pubkey import Pubkey
from solana.rpc.commitment import Confirmed
from solders.signature import Signature
WALLET_ADDRESS = "Xatt2uaAnQY3tmT98EaUeRrrp1QFeCNnQrqKf1GY7cC"