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 <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
struct myStruct { | |
uint32_t a; | |
uint32_t b; | |
uint32_t c; | |
uint32_t d; | |
}; |
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
import java.io.*; | |
import java.nio.*; | |
import java.nio.charset.*; | |
import java.nio.file.*; | |
public class SimpleCat { | |
public static void main(String[] args) { | |
Path file = FileSystems.getDefault().getPath(args[0]); | |
Charset charset = Charset.forName("US-ASCII"); | |
try (BufferedReader reader = Files.newBufferedReader(file, charset)) { |
This file has been truncated, but you can view the full file.
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
23:38:15.7814 [INFO] Loaded monitor commands from: /opt/renode/scripts/monitor.py | |
23:38:16.0726 [INFO] Including script: /opt/renode/scripts/single-node/icicle-kit.resc | |
23:38:16.4892 [INFO] System bus created. | |
23:38:20.3750 [INFO] sysbus: Loading segment of 108052 bytes length at 0x20220000. | |
23:38:20.3819 [INFO] sysbus: Loading segment of 2848 bytes length at 0x2023A640. | |
23:38:20.3820 [INFO] sysbus: Loading segment of 68048 bytes length at 0x2023AF40. | |
23:38:20.3827 [WARNING] sysbus: Tried to access bytes at non-existing peripheral in range <0x20240000, 0x2024B90F>. | |
23:38:20.3827 [INFO] sysbus: Loading segment of 81920 bytes length at 0x2023AF40. | |
23:38:20.3829 [WARNING] sysbus: Tried to access bytes at non-existing peripheral in range <0x20240000, 0x2024EF3F>. | |
23:38:20.3934 [INFO] e51: Setting PC value to 0x20220000. |
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
import os.path | |
import re | |
import sys | |
# LZ-ish decompression scheme borrowed from picolove: | |
# https://github.com/gamax92/picolove/blob/master/cart.lua | |
compression_map = b"\n 0123456789abcdefghijklmnopqrstuvwxyz!#%(){}[]<>+=/*:;.,~_" | |
def decompress(code): | |
lua = bytearray() |