Skip to content

Instantly share code, notes, and snippets.

View theneosloth's full-sized avatar

Stefan Kuznetsov theneosloth

View GitHub Profile
@theneosloth
theneosloth / goggame-1409964317.info
Last active April 23, 2018 23:22
Add the special forces SWAT 4 mod to the GOG Galaxy launch options
{
"clientId": "49700451081649670",
"gameId": "1409964317",
"language": "English",
"languages": [
"en"
],
"name": "SWAT 4 Gold Edition",
"playTasks": [
{
@theneosloth
theneosloth / goggame-1454587428.info
Created January 7, 2019 06:24
Add NVSE as a launch option for Fallout: New Vegas in the GOG Galaxy launcher
{
"clientId": "50144443643664262",
"gameId": "1454587428",
"language": "English",
"languages": [
"en"
],
"name": "Fallout: New Vegas",
"overlaySupported": true,
"playTasks": [
@theneosloth
theneosloth / dotCycler.js
Last active February 24, 2021 23:23
Dot Cycler
const dotCycler = (maxDots) => {
let dotCount = -1;
return () => {
dotCount = (dotCount + 1) % (maxDots + 1);
return '.'.repeat(dotCount);
}
}
@theneosloth
theneosloth / Makefile
Created May 1, 2023 04:56
Use nix-shell in a makefile
SHELL := /bin/sh
export PATH := $(shell nix-shell -p openapi-generator-cli --run 'echo $$PATH')
output:
mkdir -p output && cd output && openapi-generator-cli generate -i $URL -g clojure
clean:
rm -r output
@theneosloth
theneosloth / flake.nix
Created February 12, 2025 23:15
flake.nix for Common Lisp game development
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixgl.url = "github:nix-community/nixGL";
};
outputs = { self, nixgl, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
system = system;