I hereby claim:
- I am deckarep on github.
- I am deckarep (https://keybase.io/deckarep) on keybase.
- I have a public key ASCILfCZPwyCR_n1T7aot_Nq9xjLhXrkYoKZRX-deNXGrwo
To claim this, I am signing this object:
# Original credit: @doomlazer | |
# https://github.com/Doomlazer/TrivialQuest/blob/main/audio/jokes/ExtractWavs.py | |
# Extract wav files from Larry's Casino audio.vol | |
# Sound effects can also be dumped from resources.vol | |
# jokes are 71.wav - 183.wav | |
# | |
# command to convert wav to mp3: | |
# for f in *.wav; do ffmpeg -i "$f" "${f%.wav}.mp3"; done | |
import struct |
# Hello, before anyone freaks out this is just an experiment...to see how far the rabbit hole can go. | |
# Original .sc file for ref: https://github.com/EricOakford/SCI-Decompilation-Archive/blob/master/lsl1/src/rmSidewalk.sc | |
# SCI script is really interesting to me, but largely outdated | |
# Based on a combination of Small-Talk and Lisp, with Prefix notation for expressions...it can get unwieldy | |
# to read at least for me. Boat-load of paranthesis and expressions that don't read like normal infix notation. | |
# But, |
#!/usr/bin/env python3 | |
import sys | |
class NasmAligner: | |
def __init__(self, start_address=0): | |
self.alignments = {'DB': 1, 'DW': 2, 'DD': 4, 'DQ': 8} | |
self.output_lines = [] | |
self.current_address = start_address |
import sys | |
def check_alignment(val): | |
alignments = { | |
'2-byte': val & 0x1 == 0, | |
'4-byte': val & 0x3 == 0, | |
'8-byte': val & 0x7 == 0, | |
'16-byte': val & 0xF == 0, | |
'32-byte': val & 0x1F == 0, | |
'64-byte': val & 0x3F == 0, |
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"io/ioutil" | |
"log" |
rand equ $04 | |
;uint8_t next_rnd(void) | |
;{ | |
; static uint8_t rnd; | |
; rnd = rnd * 5 + 17; | |
; return rnd; | |
;} | |
; returns a pseudo rand store at memory location: rand |
package main | |
// to run: go run *.go | |
import ( | |
fmt "fmt" | |
"log" | |
proto "github.com/gogo/protobuf/proto" | |
) |
syntax = "proto2"; | |
option go_package = "main"; | |
message Dog { | |
required int32 owner_id= 1; | |
optional string breed = 2; | |
optional float height_in = 3; | |
optional string color = 4; | |
} |
// Code generated by protoc-gen-gogo. DO NOT EDIT. | |
// source: dog.proto | |
package main | |
import ( | |
encoding_binary "encoding/binary" | |
fmt "fmt" | |
github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" | |
proto "github.com/gogo/protobuf/proto" |
I hereby claim:
To claim this, I am signing this object: