Skip to content

Instantly share code, notes, and snippets.

View LumaKernel's full-sized avatar
🛌
.o0○

Luma LumaKernel

🛌
.o0○
View GitHub Profile
@LumaKernel
LumaKernel / gist:3eea10bc3178c3f13029a3a6aeb3c1bf
Created June 19, 2018 17:02
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
sudo apt remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt install -y \
liblua5.1-dev \
luajit \
libluajit-5.1 \
python-dev \
python3-dev \
ruby-dev \
libperl-dev \
@LumaKernel
LumaKernel / AtCoderInput.min.js
Last active April 14, 2020 23:13
Template input for Competitive Programing
// for AtCoder
!function(){let n,t,e=require("fs").readFileSync("/dev/stdin","utf8"),i=0;this.next=s,this.nextNumber=function(){return+s()},this.write=function(n=""){let t=(o+=n).match(/([\s\S]*)\n([^\n]*)/);t&&(log(t[1]),o=t[2])},this.flush=function(n=""){""!=(o+=n)&&(log(o),o="")},this.getLine=function(){n||(n=e.split(/[\n\r]+/));return t=null,n[l++]},this.log=console.log.bind(console),this.err=console.error.bind(console);let l=0,o="";function s(){return n||(n=e.split(/[\n\r]+/)),(!t||t.length<=i)&&(i=0,t=n[l++].split(/\s+/)),t[i++]}}();
//