Skip to content

Instantly share code, notes, and snippets.

@kuddai
kuddai / servewasm.py
Created March 20, 2021 15:44 — forked from prideout/servewasm.py
Python WASM server
#!/usr/bin/env python3
import http.server
import socketserver
PORT = 8000
Handler = http.server.SimpleHTTPRequestHandler
Handler.extensions_map.update({
'.wasm': 'application/wasm',
@kuddai
kuddai / install-vim-8-with-python-ruby-lua-ubuntu.sh
Created March 19, 2020 13:05 — forked from erickpatrick/install-vim-8-with-python-ruby-lua-ubuntu.sh
Install Vim 8 with Python, Python 3, Ruby (2.5) and Lua support on Ubuntu
# remove current vim
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
# removes current link for vim
sudo rm -rf /usr/local/share/vim /usr/bin/vim
# add ppa for newest version of ruby (currently, as of 06/06/2017, ruby v2.4)
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
@kuddai
kuddai / logging.yaml
Created November 22, 2018 09:24 — forked from JesseBuesking/logging.yaml
Testing MultiProcessingLog on both Windows 7 Enterprise and Ubuntu Developers Version 10.04_20121120.
---
version: 1
disable_existing_loggers: False
formatters:
simple:
format: "%(name)-20s%(levelname)-8s%(message)s"
handlers:
console:
class: logging.StreamHandler
level: DEBUG
class A {
public:
A(int j) {i=new int[j];}
virtual ~A() {delete[] i;}
private:
int* i;
};
class B : public A {
public:
@kuddai
kuddai / .vimrc
Last active May 7, 2018 07:50
standard .vimrc with very little amount of key changes
" change capslock to esc on Ubuntu
" xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
" on macOSX it is easy to do via settings
" on Windows who knows (never had to)
set nocompatible " We're running Vim, not Vi!
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins