Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am simias on github.
  • I am simias ( on keybase.
  • I have a public key whose fingerprint is 60DD 85DC B0E4 8F93 64C5 717D 5C96 8D2B 76C4 CE95

To claim this, I am signing this object:

View jinja 2.9.4 buildroot
PYTHONPATH="/home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5/sysconfigdata/:/home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5/site-packages/" /home/lionel/src/ambix/buildroot/output/host/usr/bin/python3.5 support/scripts/ /home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5
Traceback (most recent call last):
File "/home/lionel/src/ambix/buildroot/output/host/usr/lib/python3.5/", line 125, in compile
File "<frozen importlib._bootstrap_external>", line 700, in source_to_code
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5/site-packages/jinja2/", line 24
SyntaxError: 'yield' inside async function
View fail.c
#include <fcntl.h>
int fd = 0;
int main() {
if (fd == 0) {
fd = open("/toto", O_RDWR);
for (;;) {
View psx_timer.v
`default_nettype none
module psx_timer #(parameter WIDTH = 16)
(input clk,
input aresetn,
input [WIDTH - 1:0] target,
input reset_on_target,
input irq_on_target,
input irq_ack,
input [WIDTH - 1:0] counter_value,
View gdb.trace
Sending packet: $qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+#df...Ack
Packet received:
Packet qSupported (supported-packets) is NOT supported
Sending packet: $vMustReplyEmpty#3a...Ack
Packet received:
Sending packet: $Hg0#df...Ack
Packet received:
Sending packet: $qTStatus#49...Ack
Packet received:
Packet qTStatus (trace-status) is NOT supported
View gist:3e88263b0fbcc029485778efd01b4f1a
rustation/src/ 62:44 error: mismatched types [E0308]
rustation/src/ let var = self.variables.entry(name);
rustation/src/ 62:44 help: run `rustc --explain E0308` to see a detailed explanation
rustation/src/ 62:44 note: expected type `std::string::String`
rustation/src/ 62:44 note: found type `&str`
View load timings
Running from cache:
lw $t0, 0($t1)
takes 8 cycles
lw $t0, 0($t1)
lw $t1, 4($t1)
View instruction_timing.s
.set mips1
.set noreorder
.global main
.type main, function
.equ IRQ_STAT, 0x1f801070
.equ IRQ_MASK, 0x1f801074
View disco.patch
diff --git a/mednafen/psx/gpu_polygon.cpp b/mednafen/psx/gpu_polygon.cpp
index 85da0f2..16c0d17 100644
--- a/mednafen/psx/gpu_polygon.cpp
+++ b/mednafen/psx/gpu_polygon.cpp
@@ -525,6 +525,18 @@ INLINE void PS_GPU::Command_DrawPolygon(const uint32_t *cb)
+ vertices[0].r = 0x00;
+ vertices[0].g = 0xff;
View loader.s
/* void load_blob(unsigned *load_addr, unsigned *blob, unsigned len_words)
* Load `len_words` 32bit words from `blob` and store them at `load_addr`
.type load_blob, function
addiu $sp, -24
sw $ra, 20($sp)
sw $fp, 16($sp)
move $fp, $sp