Skip to content

Instantly share code, notes, and snippets.

View kazimuth's full-sized avatar
🕷️
numbers aren't real

james gilles kazimuth

🕷️
numbers aren't real
  • Detroit, MI
View GitHub Profile
CQOTQO RFDIFD UNSUFJYEDQB MZQQ TQCQWU KWTR QIJUHEYTI
WJVZNWJ YCCUTYQJU FXXNXYFSHJ IUDTYDW FAJWFLJ TUSYCQB
UTXNYNTSX VHEC XTQ EVVIUJ KTW WKYTQDSU XDXYJR UQSX
UTXNYNTS UDSHOFJUT GD IKRJHQSJYDW YBT
3 1.439
6 0.772
5 0.362
1 1.476
3 3.235
@kazimuth
kazimuth / pubkey.asc
Created July 17, 2016 23:26
pubkey.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFeMAIwBEAC31CQf0r60i3Ox67wTanvKN4sNZ9ghy1bVDdFl7Ia367l2sE9B
O1uoCczgLGxI/DQrUXBsImz23DEknR7CW8onjkZ+ji0nsOxDFoT9lcTQRkXPfdR3
S/TCbSDEim4f61FbtiCbVEl1ohxu/eM+PeLNarkv/3aFgCiKaedyMQow9X9ygxyR
WqvCu3IhFOBUIt0PxUYp5MN+cvSvm7wmPKM0E2M/Bk4Y5j1ko+ZhgVMcswmRjAv7
8vQaj80gYwWOJKi4o3onjg5g5S1PF10YItvx3fXcbtoQREmacZ48djUyjERkww0k
5XBYOwDVdJNlNVPjgGGRWLSF0Zn1a/XRpkdw9iYWZhLlwL9nP6BPkT7KcqYYQs7a
rBbtVsAJGScC1NdEiXaQRPKCZGsaF6NcQ7KcO/HGeqFpjh+88/mYivOeitcy2uz0
@kazimuth
kazimuth / lgconfig.sh
Last active May 25, 2019 07:48
git lg
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@kazimuth
kazimuth / gist:f95cb2fea54a2aa912ee
Created January 5, 2016 04:52
Verifier fragment
<target name="verify">
<java classpathref="classpath.run" fork="yes" classname="battlecode.instrumenter.Verifier">
<assertions>
<enable/>
</assertions>
<arg line="team28"/>
</java>
</target>
@kazimuth
kazimuth / cruftmas.py
Last active November 8, 2015 03:30
Cruftmas
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import smtplib
import string
import csv
import random
import itertools as it
from datetime import datetime

Let's talk about how git works. There are lots of tutorials explaining how to use git, and they're all great; this is just trying to give you an intuition as to why it works the way it does.

There are lots of 'version control systems', and they're all different. I'm using git here for two reasons: 1, it's ubiquitous right now; and 2, I understand it pretty well. No value judgement of any other tool.

(Everything here is true for a given value of true. It's true enough to use; if you need to know deeper specifics, check out the git tutorial site, which is wonderful.)

So, what is git?

Let's say you've worked in a group on some sort of computer-based project before. You have a folder full of (vital) files:

@kazimuth
kazimuth / test.sh
Created July 29, 2015 22:32
Shell incompatibilities
#!/bin/sh
A="HI!" B="$(sh -c 'echo $A')" sh -c 'echo $A $B'
# $ bash test.sh
# HI! HI!
# $ dash test.sh
# HI!
@kazimuth
kazimuth / hello.py
Created July 17, 2015 04:52
hacker level: The One
# This is an extremely complicated script.
# Use at your own risk.
print "What is your name?"
name = raw_input()
print "Hi, " + name
import math
import lib601.util as util
sonarMax = 1.5
class DynamicRobotMaze:
ROBOT_DIAMETER = 0.44
ROBOT_RADIUS = ROBOT_DIAMETER / 2
INITIAL_BELIEF = .3
fn foo(){}
fn main() {
// No error
let _: fn() = foo;
// fnp.rs:11:27: 11:36 error: mismatched types: expected `core::option::Option<fn()>`, found
// `core::option::Option<fn() {foo}>` (expected fn pointer, found fn item)
// fnp.rs:11 let _: Option<fn()> = Some(foo);
// ^~~~~~~~~