Skip to content

Instantly share code, notes, and snippets.

View crgibbons's full-sized avatar

Courtney Gibbons crgibbons

View GitHub Profile
@crgibbons
crgibbons / DeMoivre.tex
Created September 7, 2021 23:17
Code for DeMoivre's Theorem illustration
%% colors (yoinked from a different file where they were defined by Geogebra)
\definecolor{qqwuqq}{rgb}{0,0.49,0}
\definecolor{ududff}{rgb}{0.30,0.30,1}
\definecolor{udqqud}{rgb}{0.30,0,0.30}
\definecolor{cqcqcq}{rgb}{0.75,0.75,0.75}
%
%% add scaling factor as needed (e.g., "scale = 0.9")
%
\begin{tikzpicture}[line cap = round, line join = round, > = latex, x = 2cm, y = 2cm]
%% grid, axes, and clip window
@crgibbons
crgibbons / keybase.md
Created December 24, 2016 18:42
Keybase Proof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@crgibbons
crgibbons / gist:1fe2af8ff7f3e026144c
Created June 30, 2015 03:32
Some poset manipulations (they're not pretty)
#don't judge. I only needed 4-tuples. Might one day clean this up.
X = list()
for n in range(4):
for t in range (n+1):
for s in range (t+1):
for z in range (s+1):
X.append((z,s,t,n))
#double check that output!
X
@crgibbons
crgibbons / conund.py
Created January 26, 2015 16:58
Python code for simple base-26 to base-10 encryption
#!/usr/bin/env python
import sys
DEBUG = True
ASCII_MIN = 65; # 'A' = 65
VALID_ASCII_RANGE = range(ASCII_MIN, ASCII_MIN + 26)
def usage():
print 'Usage: %s %splaintext%s' % (sys.argv[0], '\033[4m', '\033[0;0m')
@crgibbons
crgibbons / scratchwork.m2
Created January 11, 2014 00:47
A bunch of code for playing with the NCAlgebraV2 Anick stuff.
loadPackage("NCAlgebraV2", Reload => true)
debug loadPackage("NCAlgebra", Reload => true)
debug loadPackage("Graphs2",Reload => true)
edgeset = method();
edgeset NCGroebnerBasis := G -> (
obstructions := (keys G.generators) / first ;
prevert1 := (first gens G).ring / (i -> (first keys i.terms).monList);
premons := apply (keys G.generators / first, m -> m.monList);
suffixes := select(