Skip to content

Instantly share code, notes, and snippets.

View jwmcglynn's full-sized avatar

Jeff McGlynn jwmcglynn

  • Meta Reality Labs
  • Remote, Oregon
View GitHub Profile
=>> Building net/eternalterminal
build started at Sun Jul 17 18:00:16 UTC 2022
port directory: /usr/ports/net/eternalterminal
package name: eternalterminal-6.2.1
building for: FreeBSD 130amd64-default-job-06 13.0-RELEASE-p11 FreeBSD 13.0-RELEASE-p11 amd64
maintained by: willtisdale@gmail.com
Makefile ident:
Poudriere version: 3.2.8-21-g883afb07
Host OSVERSION: 1400063
Jail OSVERSION: 1300139
// From https://github.com/Tessil/robin-map/tree/master/include/tsl
// As a single-include so it can be used from godbolt, only difference is the local includes have been removed and the files inlined.
// Maps to commit 5cf53c6f5d81ba31a475f66ac4a61c6f54e476d3
///
/// robin_growth_policy.h
///
/**
* MIT License
@jwmcglynn
jwmcglynn / gist:095fdb904e77cf2952736167bc544347
Created January 29, 2018 06:09
The tests below expose a bug/limitation of the Xmodem template code provided for CS140E assignment1.
//!
//! To fix this, the only byte that should handle a CAN is the packet receive response, which can be ACK, NAK, and CAN.
//! My fix for this required changing expect_byte, expect_byte_or_cancel, and read_byte.
/// Test sending a packet containing control characters, it should be received
/// intact.
#[test]
fn test_read_packet_control_characters() {
use std::io::{Read, Write};
bind KP_SLASH spectate // Pressing KEYPAD / will join as a spectator.
bind KP_MULTIPLY "jointeam blue" // Pressing KEYPAD * will join as BLU.
bind KP_MINUS "jointeam red" // Pressing KEYPAD - will join as RED.
bind KP_INS "join_class random" // Pressing KEYPAD 0 will change class to a random class.
bind KP_END "join_class scout" // Pressing KEYPAD 1 will change class to Scout.
bind KP_DOWNARROW "join_class soldier" // Pressing KEYPAD 2 will change class to Soldier.
bind KP_PGDN "join_class pyro" // Pressing KEYPAD 3 will change class to Pyro.
bind KP_LEFTARROW "join_class demoman" // Pressing KEYPAD 4 will change class to Demoman.