Skip to content

Instantly share code, notes, and snippets.

View changyeon's full-sized avatar

Changyeon Jo changyeon

View GitHub Profile
@changyeon
changyeon / gist:1a8b02c99ab475d8a107
Created June 9, 2015 01:04
Drop o/s file caches
#!/bin/bash
echo 3 | sudo tee /proc/sys/vm/drop_caches
sync
#!/usr/bin/env python
import sys
with open(sys.argv[1]) as f:
for line in f:
print line,
@changyeon
changyeon / molokai.xcs
Created July 10, 2015 06:58
molokai.xcs
[molokai]
text(bold)=000000
magenta(bold)=ff46ff
text=d7d7d7
white(bold)=eaeaea
green=a6e22d
red(bold)=ff4a4a
green(bold)=1cc470
black(bold)=808080
red=e28964
@changyeon
changyeon / get_ticker.py
Created December 4, 2017 06:48
Get tickers from Bithumb exchange
#!/usr/bin/env python3
import sys
import time
import requests
def get_ticker_all(interval=60):
URL = 'https://api.bithumb.com/public/ticker/ALL'
while True:
price = requests.get(URL).json()['data']
price.pop('date')
@changyeon
changyeon / Kelly Portfolio.ipynb
Created November 29, 2018 10:26
Kelly Portfolio
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@changyeon
changyeon / Parameter Tuning of a Trading Strategy with PyWren.ipynb
Created November 29, 2018 11:04
Parameter Tuning of a Trading Strategy with PyWren
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@changyeon
changyeon / python_logging.py
Created December 22, 2018 12:37
Python logging example
#!/usr/bin/env python3
import logging
def setup_logger(name, filename=None):
logger = logging.getLogger(name)
logger.setLevel(logging.DEBUG)
fmt_string = ('[%(levelname)s|%(filename)s:%(lineno)s] %(asctime)s >'
' %(message)s')
fmt = logging.Formatter(fmt_string)
@changyeon
changyeon / streamlink_live.sh
Last active December 25, 2020 13:02
streamlink script for crontab
@changyeon
changyeon / Live Migration Dataset SoCC 2017.ipynb
Last active May 14, 2023 09:28
A Machine Learning Approach to Live Migration Modeling
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@changyeon
changyeon / Azure VM CPU readings visualization in same group.ipynb
Created February 7, 2019 08:17
Azure VM CPU readings visualization
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.