Skip to content

Instantly share code, notes, and snippets.

View chapmanjacobd's full-sized avatar
🥅
goal_net

Jacob Chapman chapmanjacobd

🥅
goal_net
View GitHub Profile
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
.input {
@apply bg-white rounded-lg w-full max-w-lg px-6 border border-gray-300 py-3 mt-2;
&::placeholder {
@apply text-gray-dark;
}
&:focus {
@apply border-opacity-0 outline-none shadow-outline-blue;
}
@cdesante
cdesante / rPackages
Created April 24, 2020 14:49
Reinstalling All Packages for R 4.0
#In R 3.6, run:
.libPaths()[1]
#Copy this directory path and paste it on the line below;
#Then run all lines below in R 4.0:
PASTED <- "C:/Users/.../R/win-library/3.6"
currentPackages <- list.dirs(path = PASTED , recursive = FALSE)
currentPackages
trimmed <- stringr::str_replace_all(currentPackages, paste(PASTED , "/", sep = ""), "")
toInstall <- dput(trimmed)
doInstall <- TRUE
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active May 10, 2025 06:36
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d

SELECT ?ingredient ?ingredientLabel (GROUP_CONCAT(DISTINCT ?sandwichLabel; SEPARATOR = ", ") AS ?sandwiches) WHERE {
?sandwich ((wdt:P31?)/(wdt:P279*)) wd:Q28803;
wdt:P527 ?ingredient.
MINUS { ?ingredient (wdt:P279*) wd:Q7802. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en", "fr".
?sandwich rdfs:label ?sandwichLabel.
?ingredient rdfs:label ?ingredientLabel.
}
}
@rolandcrosby
rolandcrosby / Palme d'Or.sparql
Last active July 24, 2020 13:05
Wikidata SPARQL query to retrieve films that have won the Palme d'Or at Cannes
SELECT
?film
?title
?directors
?year
WHERE
{
SELECT
?film
?title
@tomhicks
tomhicks / plink-plonk.js
Last active May 12, 2025 16:01
Listen to your web pages
#!/bin/bash
# set -x
print_usage() {
echo "$0 [--map=0:3] video_file" >&2
echo "" >&2
echo "With video_file the path to a file like mkv which embeds the subtitles" >&2
echo "--map: use the specified embedded subtitle." >&2
echo "" >&2
@ShannonScott
ShannonScott / Notes on using ffmpeg or ffprobe.md
Last active April 23, 2024 05:05
[FFMPEG / FFPROBE Notes] Notes on using ffmpeg or ffprobe. #tags: ffmpeg, notes, video

Notes on using FFMPEG and FFPROBE

Count frames in a video

Get reported number of frames

Get the reported and actual number of frames in a video.

Note: I recently found a video that reported having 2985 frames, but actually only had 29 frames, which were all keyframes.

@meatcar
meatcar / README.md
Created September 22, 2019 23:08
WSL2 wsltty + wslbridge2

Install/copy:

Run keybinds.ahk with autohotkey, Win+Enter spawns new terminal.