The documentation given to us was (at least to me, a somewhat capable assembly developer) quite insufficient. Yes, they gave us the instruction listings, but what do the instructions actually do? What flags do they set/clear? What is the behaviour of the stack? Etc.
This file contains hidden or 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
/* | |
* A handy script to troll your crypto-obsessed friends. | |
* | |
* Just navigate to any collection on OpenSea, scroll around a bit so that | |
* the images are allowed to load, pull up the developer tools, | |
* paste this code into the console and it will generate a Bash script which will | |
* download all the expensive .PNGs in the highest quality available. | |
* | |
* The output filenames will be in the following format: "<name> (<price>).png" | |
* |
This file contains hidden or 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 <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
void parse_subchunks(FILE *f, int totalsize, int level) { | |
char buffer[5]; | |
uint32_t size, offset; | |
buffer[4] = 0; |