Skip to content

Instantly share code, notes, and snippets.

View stwf's full-sized avatar

Steven Fuchs stwf

  • Stony Brook, NY
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stwf on github.
  • I am stwf (https://keybase.io/stwf) on keybase.
  • I have a public key ASCi8YwMGIcnKgp9vNF5SQzxWVE0kwNz2ieaKRtD-XtFXgo

To claim this, I am signing this object:

@stwf
stwf / code_challenge.ex
Created March 21, 2019 17:36
Theorem Code Challenge
#
# Solution for code challenge
#
# execute using:
# elixir code_challenge.ex
#
# An odd presentation in order to fit in a gist.
defmodule CodeChallenge do
@moduledoc """
@stwf
stwf / gist:410e338da6600fcfbbbe0a6c45dfb737
Created March 21, 2019 17:23
Theorem Code Challenge
#
# Solution for code challenge
#
# execute using:
# elixir code_challenge.ex
#
# An odd presentation in order to fit in a gist.
defmodule CodeChallenge do
@moduledoc """
[debug] Timeout InListPassiveTarget
[debug] Received ACK frame on "/dev/cu.usbserial-A5058UYU"
[debug] About to send: <<0, 0, 255, 4, 252, 212, 74, 1, 0, 225, 0>>
[debug] About to send ACK: <<0, 0, 255, 0, 255, 0>>
[debug] Timeout InListPassiveTarget
[debug] Received ACK frame on "/dev/cu.usbserial-A5058UYU"
[debug] About to send: <<0, 0, 255, 4, 252, 212, 74, 1, 0, 225, 0>>
[debug] Found data length: 12
[debug] Length Checksum: true
[debug] Data length: 12
[debug] Starting target detection
[debug] About to send: <<85, 85, 0, 0, 0>>
[debug] About to send: <<0, 0, 255, 5, 251, 212, 20, 1, 0, 0, 23, 0>>
[debug] Found data length: 2
[debug] Length Checksum: true
[debug] Data length: 2
[debug] Data length: 1
[debug] Data length: 0
[debug] Data Checksum: 447, Expected: -22
[debug] Data Checksum Result: false
@stwf
stwf / nvtt build
Created February 12, 2013 00:29
build libraries after removing nvtt
Stevens-MacBook-Pro:osx steve$ ./build-osx-libs.sh -j3
Building SDL...
~/Projects/s0ad/libraries/osx/sdl ~/Projects/s0ad/libraries/osx
Skipping - already built
~/Projects/s0ad/libraries/osx
@stwf
stwf / 0ad build output
Created February 12, 2013 00:26
full build output
Stevens-MacBook-Pro:workspaces steve$ make
make: *** No targets specified and no makefile found. Stop.
Stevens-MacBook-Pro:workspaces steve$ cd gcc
Stevens-MacBook-Pro:gcc steve$ make
==== Building mocks_real (release) ====
Creating obj/mocks_real_Release
mocks_real.cpp
In file included from ../../../libraries/osx/boost/include/boost/preprocessor/cat.hpp:17,
from ../../../libraries/osx/boost/include/boost/mpl/aux_/integral_wrapper.hpp:22,
from ../../../libraries/osx/boost/include/boost/mpl/int.hpp:20,