Skip to content

Instantly share code, notes, and snippets.

View y9c's full-sized avatar
🥼
In the lab

Chang Y y9c

🥼
In the lab
View GitHub Profile
@y9c
y9c / surfingkeys.js
Last active October 28, 2017 04:30 — forked from rynffoll/surfingkeys.js
Surfingkeys Config
// 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;
});
});
@y9c
y9c / latest_vim_and_ubuntu_with_all.sh
Last active May 29, 2017 11:07
Installing vim 8.0.X with lua 5.3, python on Ubuntu 16.04
# 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 \
@y9c
y9c / setting_for_vimium_user.jq
Created January 9, 2016 17:28
a user friendly setting for vimium user
//help
mapkey('?', 'Show usage', 'Normal.showUsage()');
//toggle
Events.hotKey = 'i'; // hotkey must be one keystroke with/without modifier, it can not be a sequence of keystrokes like `gg`.
// tab
mapkey('ZQ', 'Quit', function() {
RUNTIME('quit');
});
@y9c
y9c / 0_reuse_code.js
Created December 29, 2015 06:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@y9c
y9c / try.md
Created December 29, 2015 06:23

hello

note

hello1

print("hello")

hello2