Skip to content

Instantly share code, notes, and snippets.

View kena0ki's full-sized avatar
🐢

Ken Aoki kena0ki

🐢
View GitHub Profile
@kena0ki
kena0ki / install-vim-from-source_on_Centos7.sh
Last active April 2, 2020 03:19
install or upgrade vim from source code on Centos 7
#!/bin/bash -eu
#https://www.vim.org/git.php
echo -n "Input work directory (default to home) >> "
read WORKDIR
echo
test -z "$WORKDIR" && WORKDIR=~
test ! -e "$WORKDIR" && mkdir "$WORKDIR"
LOGFILE="$PWD/$WORKDIR"/vim/viminstall.log
@kena0ki
kena0ki / this.js
Last active March 28, 2020 02:17
I expected fnc prints MyClass, at least the last one, but actually it printed undefined.
'use strict'
function MyClass() {
function fnc() {
console.log(this, 'in fnc');
}
const arrow = () => {
console.log(this, 'in arrow');
}
const bind = function() {
@kena0ki
kena0ki / install-vim-from-source-on-MacOS10.15.4.md
Last active April 2, 2020 04:11
install vim from source on MacOS 10.15.4 with python3 and ruby

Prerequirments

  • Xcode command line tools.
  • Python3.
  • Ruby Stable.

Install or Update Vim

Run following script.

#!/bin/zsh -eu