Skip to content

Instantly share code, notes, and snippets.

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
@lainq
lainq / encoder.py
Last active June 28, 2021 15:36
An encoder that I made
import string
import sys
class Encoder(object):
__characters = string.printable
class __EncoderError(Exception):
def __init__(self, text, allowed_characters):
message_string = (
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active June 23, 2025 17:10
Conventional Commits Cheatsheet
@robertpeteuil
robertpeteuil / GitHub Language Colors in CSS and JSON
Last active June 2, 2025 00:04
GitHub Language Colors in CSS and JSON
This Gist contains the GitHub Language colors in CSS and JSON formats in seperate files.
@dingzeyuli
dingzeyuli / check_github_repo_size
Created December 16, 2016 22:34
Check the size of a github repo before downloading
# 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,
@lethee
lethee / get_active_window_and_exec.py
Last active July 28, 2024 13:46
Get a active window title and its executable path
# pywin32 must be installed
# pip install wmi
import win32gui
import win32process
import win32pdhutil
import wmi
procs = wmi.WMI().Win32_Process()
@roachhd
roachhd / README.md
Last active June 23, 2025 07:35
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@tibordp
tibordp / variant.cc
Last active January 26, 2025 13:27
A simple variant type implementation in C++
#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>
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
/* 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;}