Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Coding

Xing He kukushi

:octocat:
Coding
View GitHub Profile
@kukushi
kukushi / .zshrc
Last active Nov 7, 2015
.zshrc for oh-my-zsh
View .zshrc
# Path to your oh-my-zsh installation.
export ZSH=/Users/kukushi/.oh-my-zsh
ZSH_THEME="robbyrussell"
plugins=(git)
# User configuration
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
View .zpreztorc
#
# Sets Prezto options.
#
zstyle ':prezto:*:*' color 'yes'
# Set the Zsh modules to load (man zshmodules).
zstyle ':prezto:load' pmodule \
'environment' \
@kukushi
kukushi / clean_fasd.py
Created Jun 21, 2019
Python script cleaning up fasd storage
View clean_fasd.py
#!/usr/bin/env python3
import os
import time
import argparse
def main(args):
"""
Rule:
@kukushi
kukushi / Triangular-Arbitrage.py
Last active May 2, 2020
Binance Triangular Arbitrage
View Triangular-Arbitrage.py
import requests
import datetime
import operator
host = 'https://api.binance.com'
priceURL = host + '/api/v3/ticker/price'
priceResponse = requests.get(priceURL)
priceResponseJSON = priceResponse.json()
# {'symbol': 'ETHBTC', 'price': '0.07608700'}: 1 ETH = 0.0760 BTC
You can’t perform that action at this time.