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
# cowsay "I use Windows, BTW" | |
oh-my-posh.exe --init --shell pwsh --config ${env:PROGRAMFILES(x86)}\oh-my-posh\themes\ys.omp.json | Invoke-Expression | |
function JL([String]$ScriptName) { | |
julia.exe -t 8 -i --proj "$ScriptName" | |
} | |
function Pluto() { | |
julia.exe -t 8 -e "using Pluto; Pluto.run()" |
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
import sys | |
import tty | |
import termios | |
def raw(): | |
# save old setting | |
file_desc = sys.stdin.fileno() | |
old_setting = termios.tcgetattr(file_desc) | |
# enable raw mode |
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
using Plots | |
######### | |
# utils # | |
######### | |
struct FontArgv | |
size::Int64 | |
color::Symbol | |
end |
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
using REPL | |
# +-------+ | |
# | Utils | | |
# +-------+ | |
read_next_byte(io::IO) = read(io, 1)[1] | |
function read_stream_bytes(stream::IO) | |
queue = UInt8[] |