Skip to content

Instantly share code, notes, and snippets.

@halprin
halprin / Uses.md
Last active November 14, 2020 19:00
Data Structure and Algorithm Uses

Data Structure Uses

Lists

A linear group of items in a specific order.

Array

Index addressable list.

@halprin
halprin / delete_items.py
Last active September 6, 2019 22:50
Delete All Items in a DynamoDB Table via Deletion and Creation
#!/usr/bin/env python3
import boto3
import sys
client = boto3.client('dynamodb')
def get_table_description(table_name):
@halprin
halprin / sra_4byte_swap.py
Last active June 29, 2019 21:20
Changes the endianness of every four bytes for SRA ROM saves
import sys
import struct
from os import path
def flip_four_bytes(bytes):
return struct.pack('<1L', *struct.unpack('>1L', bytes))
def read_write_save(original_save_path: str):

Keybase proof

I hereby claim:

  • I am halprin on github.
  • I am halprin (https://keybase.io/halprin) on keybase.
  • I have a public key ASCPvkXaK0uMlvpzh9C-tmwupxLebltzndsArfsMjX__uwo

To claim this, I am signing this object: