This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PC=0x478b42 | |
syscall.Syscall() | |
/usr/lib/go/src/pkg/syscall/asm_linux_amd64.s:16 +0x5 | |
syscall.read(0x3, 0xc200086000, 0x1000, 0x1000, 0x100000000000003, ...) | |
/usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:2337 +0x70 | |
syscall.Read(0x3, 0xc200086000, 0x1000, 0x1000, 0x408c18, ...) | |
/usr/lib/go/src/pkg/syscall/syscall_unix.go:132 +0x5a | |
os.(*File).read(0xc2000009a8, 0xc200086000, 0x1000, 0x1000, 0x412e14, ...) | |
/usr/lib/go/src/pkg/os/file_unix.go:174 +0x60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ mx-git makepkg -si | |
==> Making package: mx-git 1.99.4_271_g6a43d10-1 (Fri Aug 9 20:09:33 EDT 2013) | |
==> Checking runtime dependencies... | |
==> Checking buildtime dependencies... | |
==> Retrieving sources... | |
-> Updating mx git repo... | |
Fetching origin | |
==> Validating source files with md5sums... | |
mx ... Skipped | |
==> Extracting sources... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (b *Board) run() { | |
for { | |
msg := message{} | |
header, err := b.buf.ReadByte() // Line 123 in my full file. | |
if err != nil { | |
log.Printf("Error reading message header: %s", err) | |
return | |
} | |
// Sysex commands have their own header so check for that first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "XboxController.h" | |
XboxController::XboxController(PAD_ID pad) : | |
id(pad) | |
{ | |
} | |
XboxController::~XboxController() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An alternative to this method is to use a small hierarchy of | |
// nodes with the camera being attached to the deepest child node. | |
// With this alternative method, you would not have to manually place | |
// and rotate your spotlight. It also avoids gimbal lock. | |
// | |
// Here is where I got most of the code for my FPS setup for lab 4: | |
// http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Creating+a+simple+first-person+camera+system | |
void yourUpdateFunc() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Erlang Version | |
universal_server() -> | |
receive | |
{become, F} -> | |
F() | |
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lab2/ | |
basic_game/ | |
app.py (App) | |
event.py (EventManager) | |
part1.py (Game) | |
for app.py to see the EventManager class, the from .event import EventManager was needed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/zach/dev/python/scripting/lab2/part1.py", line 161, in <module> | |
app.run() | |
File "/home/zach/dev/python/scripting/lab2/basic_game/app.py", line 41, in run | |
self.game.update(self.clock.get_time()) | |
File "/home/zach/dev/python/scripting/lab2/part1.py", line 36, in update | |
[m.update(dt) for m in self.marios.values()] | |
File "/home/zach/dev/python/scripting/lab2/part1.py", line 36, in <listcomp> | |
[m.update(dt) for m in self.marios.values()] | |
TypeError: Argument must be a dict with rectstyle keys. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace ECS | |
{ | |
public sealed class Entity | |
{ | |
// A unique ID representing the Entity. Will not be reused if | |
// the entity is deleted. | |
public long UniqueID { get; internal set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/D/R/firmata git:master ❯❯❯ cargo build | |
Compiling firmata v0.1.0 (file:///Users/zach/Development/Rust/firmata) | |
src/lib.rs:9:15: 9:25 error: the value of the associated type `Settings` (from the trait `serial::SerialPort`) must be specified [E0191] | |
src/lib.rs:9 port: &'a SerialPort, | |
^~~~~~~~~~ | |
error: aborting due to previous error | |
Could not compile `firmata`. | |
To learn more, run the command again with --verbose. |