note
print("hello")
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf | |
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf | |
sudo mv PowerlineSymbols.otf /usr/share/fonts/ | |
sudo fc-cache -vf | |
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/ |
# remove old vim | |
sudo apt purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
# install dependence | |
sudo apt install liblua5.1-dev luajit libluajit-5.1 \ | |
python3-dev \ | |
ruby-dev \ | |
libperl-dev \ |
// unmap some system key | |
unmap('<Ctrl-j>'); | |
// mapping like vimum | |
map('u', 'e'); | |
mapkey('p', "Open the clipboard's URL in the current tab", function() { | |
Front.getContentFromClipboard(function(response) { | |
window.location.href = response.data; | |
}); | |
}); |
"============================================================================= | |
" Configuration for SpaceVim ( URL: https://spacevim.org ) | |
" Edited by yech | |
"============================================================================= | |
" SpaceVim Wraped Options: {{{ | |
let g:spacevim_enable_debug = 1 | |
let g:spacevim_realtime_leader_guide = 1 | |
let g:spacevim_enable_tabline_filetype_icon = 1 |
sns.set( | |
context="paper", | |
style="ticks", | |
font_scale=1, | |
rc={ | |
"xtick.labelsize": 16, | |
"ytick.labelsize": 16, | |
"axes.labelsize": 14, | |
"legend.fontsize": 16, | |
"lines.linewidth": 1.25, |
void main() { | |
print([ | |
if (2 > 1) 222 else 333, | |
if (2 > 3) 444, | |
for (int i in Iterable.generate(10)) if (i % 3 == 1) i, | |
for (int i in Iterable.generate(10, (x) => x + 100)) if (i % 2 == 0) i | |
]); | |
} |