Skip to content

Instantly share code, notes, and snippets.

View knutaf's full-sized avatar

knutaf

View GitHub Profile
@knutaf
knutaf / binding_of_isaac_joy2key
Created June 25, 2014 07:53
joy2key binding (get it!?) for binding of isaac
[General]
FileVersion=53
NumberOfJoysticks=1
DisplayMode=3
UseDiagonalInput=0
UsePOV8Way=0
Threshold=250
Threshold2=610
KeySendMode=0
[Joystick 1]
@knutaf
knutaf / debatoid.js
Created May 10, 2011 14:14
tally up votes for debatoid
(function() {
function TallyVotes()
{
var candidates =
[
["STEEZY", "STEEZYXL"],
["EPRAHIM"]
];
var comments = document.querySelectorAll(".comment-even, .comment-odd");
@knutaf
knutaf / stream_info
Last active January 13, 2017 05:12
More info about whatever knutaf is currenty streaming
Currently working on:
Advent of Code day 19, part 1: https://adventofcode.com/2016/day/18
my code: https://github.com/knutaf/advent2016
https://drawings.jvns.ca/networking/
https://drawings.jvns.ca/mac-address/
https://drawings.jvns.ca/dns/
https://drawings.jvns.ca/packet/
https://drawings.jvns.ca/tcp-1/
https://drawings.jvns.ca/layers/
https://drawings.jvns.ca/ipv6/
https://drawings.jvns.ca/nat/
use std::io::Read;
fn main() {
for b in std::io::stdin().bytes() {
let val = b.unwrap();
match val {
0xd => println!(""),
0xa => (),
_ => println!("{:#02x}", val),
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.