Skip to content

Instantly share code, notes, and snippets.

View JLWalsh's full-sized avatar
🏎️
Zoom Zoom

James L. Walsh JLWalsh

🏎️
Zoom Zoom
View GitHub Profile
@STRML
STRML / bat-download.js
Last active July 10, 2024 15:47
A simple script for downloading all images for a listing on BringATrailer.com
(async function() {
const delay = (ms) => new Promise(r => setTimeout(r, ms));
// Given a url, try to download a high-res version of it
// This prevents us from downloading a downscaled thumbnail
function replaceUrlParam(url) {
return url
.split('?')[0] // get rid of querystring
.replace('-scaled.', '.'); // Remove `-scaled` to attempt to get the full res image
}
@seanmiddleditch
seanmiddleditch / FindSDL2.cmake
Last active August 15, 2023 15:57
Modernized FindSDL2 module for CMake with improved Windows support
# This module defines the library modules
# SDL2::SDL2 and SDL2::SDL2main
#
# Don't forget to include SDLmain.h and SDLmain.m your project for the
# OS X framework based version. (Other versions link to -lSDL2main which
# this module will try to find on your behalf.) Also for OS X, this
# module will automatically add the -framework Cocoa on your behalf.
#
#