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
;; Not sure both are necessary | |
(use-package flycheck-mypy | |
:ensure t | |
:config | |
(add-hook 'python-mode-hook (lambda () | |
(add-to-list 'flycheck-checkers 'python-mypy)))) | |
(use-package flycheck | |
:init (global-flycheck-mode) | |
:config | |
(add-hook 'python-mode-hook |
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
(use-package lsp-mode | |
:custom | |
;; (lsp-auto-guess-root nil) | |
(lsp-prefer-flymake nil) | |
(lsp-ui-doc-position 'bottom) | |
:hook ((python-mode . lsp)) | |
:commands lsp) | |
(use-package lsp-ui | |
:config |
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
# Python | |
import asyncio | |
import ccxt.async_support as ccxt | |
from datetime import datetime, timedelta | |
async def print_bitfinex_ethbtc_ticker(): | |
bitfinex = ccxt.bitfinex() | |
# print(await bitfinex.fetch_ticker('ETH/BTC')) |
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
;;; Package --- Summary | |
;;; Commentary: | |
;;; Code: | |
(require 'find-dired) | |
(defun webos-top (path &optional strict) | |
"Return wtop from PATH. |
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
package main | |
// Get ticker from upbit and collect high volume and acc price | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"sort" | |
"strings" |
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
set title "BTCUSD 4H" at screen 0.5, screen 0.95 center | |
# set yrange [75:105] | |
# set ytics (105, 100, 95, 90, 85, 80) | |
# set xrange [50:253] | |
set lmargin 9 | |
set rmargin 2 | |
set grid | |
set boxwidth 0.2 | |
set style fill solid | |
set style arrow 1 head filled ls 1 |
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
// UnmarshalJSON from string to time.Time | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"time" | |
) | |
type Response struct { |
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
// UnmarshalJSON from []float64 to struct(Value) | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Value struct { | |
First float64 |
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
#!/bin/bash | |
# for crontab | |
export PATH=$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
URL=mms://211.181.136.136/livefm | |
DESTDIR=$HOME/Music/chulsoo | |
RECIPIENT='foo@bar.com' | |
WAVFILE=$(date +\%Y\%m\%d\%H).wav | |
DURATION=3600 |
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
;;; init.el --- My own emacs configuration | |
;; Copyright (C) 2017 Hyungchan Kim | |
;; Author: Hyungchan Kim <inlinechan@gmail.com> | |
;; Keywords: lisp use-package | |
;;; Commentary: | |
;; `use-package' |
NewerOlder