Skip to content

Instantly share code, notes, and snippets.

View calchulus's full-sized avatar

Calvin Chu calchulus

  • Chicago, IL
View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active January 14, 2023 19:32
Binance API for Google Apps Script

Binance API for Google Apps Script

This sample script is for using Binance API by Google Apps Script. This script encryptes "signature" like samples. In this script, "Example 1: As a query string" is used, and it retrieves "All orders (SIGNED)" by "GET".

function main() {
    var key = '#####'; // Please input your key.
    var secret = '#####'; // Please input your secret.
    var api = "/api/v3/allOrders"; // Please input API Endpoint you want.
    var timestamp = Number(new Date().getTime()).toFixed(0);
 var string = "symbol=LTCBTC&timestamp=" + timestamp; // Please input query parameters for the inputterd API.
@jdkanani
jdkanani / walletconnect-provider.js
Created April 25, 2018 17:37
Walletconnect providers
import Web3 from 'web3'
function getCallback(payload, cb) {
return function(err, result) {
const obj = {}
const keys = ['id', 'jsonrpc']
keys.forEach(key => {
obj[key] = payload[key]
})
obj.result = result
@jmw1040
jmw1040 / CMSC 122 - Webscraping
Last active January 8, 2018 17:41
CMSC 122 - WebScraping
### CSMC 122
#### January 8, 2018
----------
### Beautiful Soup
#### Lecture 1 (Week 1 Fri, 2018-01-05)
##### urllib2:
We will use urllib2 (a package to import) to scrape websites