Skip to content

Instantly share code, notes, and snippets.

View jwthomp's full-sized avatar

Jeff Thompson jwthomp

View GitHub Profile
@jwthomp
jwthomp / monad.erl
Created January 25, 2012 04:46
Erlang Monad
-module(monad).
-export([ monad_context/2, putst/1, getst/0, lift/0, return/1 ]).
-export([ test/0 ]).
%%%%%%%%%%%%%%%%%%%%% Erlang Monad %%%%%%%%%%%%%%%%%%%%%%
%% Working on a simple monad implementation for Erlang %%
%% %%
%% Just for fun I tried whipping up a simple erlang %%
%% monad. It uses the process dictionary and I haven't %%
%% implemented lift and many children of a monad state %%
@jwthomp
jwthomp / kubecontext.1s.py
Last active March 5, 2020 16:50
kubecontext.1s.py Update to work
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <bitbar.title>Kubeconfig Context Changer</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Chris Opland</bitbar.author>
# <bitbar.author.github>copland</bitbar.author.github>
# <bitbar.desc>Displays active kubeconfig context and allows you to easily change contexts.</bitbar.desc>
# <bitbar.dependencies>python,kubectl</bitbar.dependencies>