I hereby claim:
- I am crespyl on github.
- I am pjacobs (https://keybase.io/pjacobs) on keybase.
- I have a public key ASAEUgs7WNTymvt9wRNHWO-sliNNIlkpffE1oPP1wrO9aAo
To claim this, I am signing this object:
Part 1 | |
0 00003: IN -> @225 | |
< 1 | |
2 00001: ADD @225, @6 -> @6 | |
6 01101: ADD 1, 238 -> @225 | |
10 00104: OUT 0 | |
> 0 | |
12 00101: ADD 67, @166 -> @224 | |
16 01001: ADD @224, -110 -> @224 | |
20 00004: OUT @224 |
#!/usr/bin/env ruby | |
class Node | |
attr_accessor :name | |
attr_accessor :parent | |
def initialize(name, parent) | |
@parent = parent | |
@name = name | |
end |
#!/usr/bin/env crystal | |
class Node | |
property name : String | |
property parent : Node | Nil | |
def initialize(name, parent) | |
@parent = parent | |
@name = name | |
end |
# This module defines the "Intcode" interpreter and several utility functions | |
# for dealing with opcodes and parameter handling | |
module Intcode | |
@@DEBUG = false | |
# Each supported opcode is represented as instance of the Opcode class, with | |
# the implementation attached as a Proc, along with a function to generate | |
# simplistic human-readable string for debugging | |
class Opcode | |
property sym : Symbol |
1328 │ [ 679.915600] amdgpu 0000:08:00.0: in page starting at address 0x000080021b8a0000 from 27 | |
1329 │ [ 679.915601] amdgpu 0000:08:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x00301031 | |
1330 │ [ 679.916262] amdgpu 0000:08:00.0: [gfxhub] retry page fault (src_id:0 ring:0 vmid:3 pasid:32796, for process MCC-Win64-Shipp pid 18526 thread MC | |
│ C-Win64-Shipp pid 18526) | |
1331 │ [ 679.916264] amdgpu 0000:08:00.0: in page starting at address 0x000080021b8a0000 from 27 | |
1332 │ [ 679.916265] amdgpu 0000:08:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x00301031 | |
1333 │ [ 680.136106] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=256374, emitted seq=256376 | |
1334 │ [ 680.136144] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process MCC-Win64-Shipp pid 18526 thread MCC-Win64-Shipp pid 18526 | |
1335 │ [ 680.136147] amdgpu 0000:08:00.0: GPU reset begin! | |
1336 │ [ 680.490128] amdgpu 0000:08:00.0: GPU BACO reset |
I hereby claim:
To claim this, I am signing this object:
#![feature(collections, convert)] | |
extern crate curl; | |
extern crate rustc_serialize; | |
use curl::http; | |
use rustc_serialize::json; | |
use std::collections::HashSet; | |
const ROSETTACODE_ENDPOINT_URL: &'static str = "http://rosettacode.org/mw/api.php"; |
use std::io; | |
#[deriving(Show)] | |
enum CellState { | |
Empty, | |
Conductor, | |
ElectronHead, | |
ElectronTail | |
} | |
impl CellState { |