See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| syntax enable | |
| let g:rustfmt_autosave = 1 | |
| let g:airline#extensions#tabline#enabled = 1 | |
| set relativenumber | |
| let g:airline#extensions#tabline#left_sep = ' ' | |
| let g:airline#extensions#tabline#left_alt_sep = '|' | |
| let g:airline#extensions#tabline#formatter = 'default' | |
| let g:NERDTreeWinSize=20 | |
| set guifont=DroidSansMono\ Nerd\ Font\ 11 | |
| set encoding=utf8 |
| import string | |
| import sys | |
| class Encoder(object): | |
| __characters = string.printable | |
| class __EncoderError(Exception): | |
| def __init__(self, text, allowed_characters): | |
| message_string = ( |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| This Gist contains the GitHub Language colors in CSS and JSON formats in seperate files. |
| # http://webapps.stackexchange.com/questions/39587/view-estimated-size-of-github-repository-before-cloning | |
| # tested on macOS | |
| echo https://github.com/torvalds/linux.git | perl -ne 'print $1 if m!([^/]+/[^/]+?)(?:\.git)?$!' | xargs -I{} curl -s -k https://api.github.com/repos/'{}' | grep size | |
| # output: | |
| # "size": 1746294, |
| # pywin32 must be installed | |
| # pip install wmi | |
| import win32gui | |
| import win32process | |
| import win32pdhutil | |
| import wmi | |
| procs = wmi.WMI().Win32_Process() |
| #include <iostream> | |
| #include <utility> | |
| #include <typeinfo> | |
| #include <type_traits> | |
| #include <string> | |
| template <size_t arg1, size_t ... others> | |
| struct static_max; | |
| template <size_t arg> |
| /* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon | |
| * http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */ | |
| s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17 | |
| ?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;} |