Skip to content

Instantly share code, notes, and snippets.

View jm-janzen's full-sized avatar
🫖
sleep 5m ; printf "tea time\!\a" &

J.M. Janzen jm-janzen

🫖
sleep 5m ; printf "tea time\!\a" &
View GitHub Profile
@aras-p
aras-p / preprocessor_fun.h
Last active March 5, 2026 23:36
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@mkweskin
mkweskin / gist:5414303
Last active February 6, 2026 15:31
Convert markdown to mediawiki with pandoc
pandoc -f markdown -t mediawiki test.md -o test.wiki
# Thanks to @tillmanj for the updated formatting
@phillbaker
phillbaker / Gemfile
Last active December 13, 2019 13:28
Sinatra-Assetpack + LESS (Twitter Bootstrap) demo
source :rubygems
gem 'sinatra'
gem 'sinatra-assetpack'
gem 'json'
gem 'therubyracer'
gem 'less'
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@lukaskonarovsky
lukaskonarovsky / dynamicarray.cpp
Created April 6, 2009 21:33
C++ dynamic array implementation
#include "dynamicarray.h"
using namespace std;
DynamicArray::DynamicArray() {
DynamicArray::DynamicArray(5);
}
DynamicArray::DynamicArray(int initSize) {
size = initSize;