Skip to content

Instantly share code, notes, and snippets.

View Jwan622's full-sized avatar

Jeffrey Wan Jwan622

View GitHub Profile
@Jwan622
Jwan622 / github commands
Last active May 25, 2020 14:01
git commands
git rebase -i origin/master
- use it to rebase the branch using a root of origin/master
git log origin/master..HEAD
- log everything in head that isn’t in origin/master. it’s a venn diagram
git checkout <git sha> -- <file_path>
if you only want changes from a specific file from a specific commit. If you do this from a parent, it will move changes to parent.
@Jwan622
Jwan622 / geminiapicalls.py
Last active May 29, 2020 15:22
gemini api calls
import requests
import json
import base64
import hmac
import hashlib
import datetime, time
base_url = "https://api.sandbox.gemini.com"
gemini_api_key = "mykey"
gemini_api_secret = "1234abcd".encode()
# this gets the symbol list