Skip to content

Instantly share code, notes, and snippets.

@whipsch
whipsch / gist:2220582
Created March 27, 2012 21:40
hex dump of monitor.asm assembled by titanasm
0000 00 01 02 03 04 05 06 07 08 09 00 00 00 00 00 00
0010 00 0A 0B 0C 0D 0E 0F 30 31 32 33 34 35 36 37 38
0020 39 00 00 00 00 00 00 00 41 42 43 44 45 46 D0 0A
0030 F0 FF FF D0 0D F0 FF FF D0 3E F0 FF FF D1 05 D2
0040 01 E0 FF FF 15 00 A1 00 3D DF 1B 15 0F A1 00 2E
0050 12 21 70 A1 00 59 A0 00 3D 80 D1 2F 15 01 A1 00
0060 73 D1 43 15 01 A1 00 BE D1 20 15 01 A1 00 C7 00
0070 A0 00 2E A5 00 99 B8 12 70 D1 0F 13 01 CA 00 17
0080 80 17 10 17 10 17 10 17 10 D1 F0 13 01 CB 00 17
0090 C3 FF FF C2 FF FF A0 00 2E 8A 8B 81 D0 30 12 01
#!/usr/bin/perl
#
#
use warnings;
use strict;
my ($from_dir, $to_dir, $jargs) = @ARGV;
unless ($from_dir && $to_dir) {
macro_rules! wrapped_enum {
($(#[$attr:meta])* pub enum $enum_name:ident, $($enum_variant_name:ident($ty:ty),)+) => (
$(#[$attr])*
pub enum $enum_name { $($enum_variant_name($ty)),+ }
$(impl From<$ty> for $enum_name {
fn from (ty: $ty) -> Self {
$enum_name::$enum_variant_name(ty)
}
})+
);
@whipsch
whipsch / testing.md
Last active August 29, 2015 14:23
foo bar baz biff

this

is a test

cool

@whipsch
whipsch / testing.md
Created June 27, 2015 03:53
Another Test

hello there


yo

@whipsch
whipsch / testing.md
Created June 27, 2015 06:56
yet another test
what
  • woo

  • hoo

  • cool

    some code in here

@whipsch
whipsch / really.js
Last active August 29, 2015 14:23
just one more test
console.log("for real")
// ==UserScript==
// @name gist-rust-playpen
// @description Adds a Rust Playpen button to Gists that contain a Rust file.
// @namespace whipsch
// @include https://gist.github.com/*
// @version 1
// @grant none
// ==/UserScript==
if (document.querySelector("div.file > div.type-rust")) {
@whipsch
whipsch / backtrace
Created January 6, 2016 02:37
rustc stable 1.5.0, beta, 1.6.0-beta.1, 1.7.0-nightly (d5e229057) ICE, `-Z unstable-options --pretty normal src/lib.rs`
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:366
stack backtrace:
1: 0x7f2723300d70 - sys::backtrace::tracing::imp::write::h1fe79f3711caca0eUnt
2: 0x7f2723307685 - panicking::log_panic::_<closure>::closure.39701
3: 0x7f27233070f5 - panicking::log_panic::hffc6d029fed602571nx
4: 0x7f27232ca663 - sys_common::unwind::begin_unwind_inner::h7045c1c64d9ab8edYgs
5: 0x7f27232cafc8 - sys_common::unwind::begin_unwind_fmt::h40ee994bfe85f7a54fs
6: 0x7f27232fec31 - rust_begin_unwind
7: 0x7f272335226f - panicking::panic_fmt::h4c8d12e3c05f3b8cZEK
8: 0x7f272334c818 - panicking::panic::hb8a57f0c8013c90awDK

Keybase proof

I hereby claim:

  • I am whipsch on github.
  • I am whipsch (https://keybase.io/whipsch) on keybase.
  • I have a public key ASBSJB5lyOoO9cTfDmCnwEKiHcBkZTdgCnVU1JA0qoaVFgo

To claim this, I am signing this object: