Skip to content

Instantly share code, notes, and snippets.

View edunham's full-sized avatar

E. Dunham edunham

View GitHub Profile
def example(n :int):
var output := ""
switch(n){
match > 0 { output += "less than or equal to zero" }
match == 0 { output += "zero" }
match > -3 { output += "not too small"}
match _ { output += "something else" }
}
return output
def bottles(n):
return switch (n) {
match ==0 { return "No bottles" }
match ==1 { return "1 bottle" }
match _ { return `$n bottles` }
}
var n := 99
while (n > 0):
/*
SD - a slightly more friendly wrapper for sdfatlib
This library aims to expose a subset of SD card functionality
in the form of a higher level "wrapper" object.
License: GNU General Public License V3
(Because sdfatlib is licensed with this.)
/*
SD - a slightly more friendly wrapper for sdfatlib
This library aims to expose a subset of SD card functionality
in the form of a higher level "wrapper" object.
License: GNU General Public License V3
(Because sdfatlib is licensed with this.)
@edunham
edunham / lugbylawsideas
Last active August 29, 2015 14:01
LUG bylaws voting stuff
PR officer position: Recruitment, outreach, social media
Treasurer makes budget and officers vote?
OR
Expenditure cap, over $200/term requires [officer | club] vote
Secretary duty to delegate posting of minutes/slides/video to blog after each talk
Rescinding ops: any time vote of no confidence or resignation, else contact after 4months channel inactivity if no repply 2months after tat, lose hat

Notes from the PyCon 2014 Twisted BOF

TLDR (from Ying's notes):

  • Python 3 porting:
    • Needed: Which modules are ported, which dependencies are not ported
    • Twisted.python.dist3 (?)
    • If not porting, bring review queue down so porting tickets can be reviewed
  • GitHub integration
@edunham
edunham / LUGmeetingsSpring2014
Last active August 29, 2015 13:57
LUG voting results
13 talks were proposed and we have 9 weeks to do talks in.
That means that whichever 9 we can find speakers for, we'll have.
Probably no formal installfest spring term.
14 votes:
- Full-disk encryption (Wade) -- tentatively may 13
- Testing -- bramwelt
- Security
12 votes:
@edunham
edunham / keybase.md
Created March 12, 2014 05:23
Trying out keybase!

Keybase proof

I hereby claim:

  • I am edunham on github.
  • I am edunham (https://keybase.io/edunham) on keybase.
  • I have a public key whose fingerprint is E309 C19F 2289 4EA7 36CC 2FF9 9A1A 15E6 753F 878C

To claim this, I am signing this object:

@edunham
edunham / gist:9236990
Created February 26, 2014 19:46
Arch
Installing Google Talkplugin
1) Download .tgz from https://aur.archlinux.org/packages.php?ID=40056 (https://aur.archlinux.org/packages/go/google-talkplugin/google-talkplugin.tar.gz)
2) tar -xvf the tgz; cd google-talkplugin
3) sudo pacman -S base-devel # makepkg was broken
4) makepkg # works 'cause we're in same dir with PKGBUILD file; gives us a .rpm and a .pkg.tar.xz

first test

first test

second test

second test