Skip to content

Instantly share code, notes, and snippets.

View yellowbean's full-sized avatar
Stay cool

Shawn Zhang yellowbean

Stay cool
View GitHub Profile
For the sake of understanding how many of these systems work underneath, here is some bare minimum code to compile code without a repl.
Say you have some class generating code:
hello.clj:
(ns hello
(:gen-class
:methods [[sayHi [] String]]))
@yellowbean
yellowbean / gist:548911f67f7efd80ab9139f201718dde
Created February 9, 2020 04:23
Rapberry pi health check commands
# temperature
/opt/vc/bin/vcgencmd measure_temp
# IO
iostat
@yellowbean
yellowbean / gist:ecfeea489f0573e2aca761779988fae2
Created February 9, 2020 04:23
Rapberry pi health check commands
# temperature
/opt/vc/bin/vcgencmd measure_temp
# IO
iostat
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
"base
@yellowbean
yellowbean / ini
Created April 17, 2022 18:51
neovim config
call plug#begin(stdpath('data') . '/plugged')
" git
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
" Specify your required plugins here.
Plug 'liuchengxu/vim-better-default'
"
" " Optional useful plugins I highly recommend.
Plug 'easymotion/vim-easymotion'
@yellowbean
yellowbean / py
Created October 24, 2022 05:07
query nested python map structured
stuff = {
"A":{
"B":{
"C":"D"
}
}
}
def query(d,p):