Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Advent of Code Improvements
// @namespace https://gist.github.com/xPaw/4fffaf776fe14d15c9602991f51dbfa1
// @updateURL https://gist.github.com/xPaw/4fffaf776fe14d15c9602991f51dbfa1
// @version 1.0
// @author xPaw
// @match https://adventofcode.com/*
// @icon https://adventofcode.com/favicon.png
// @grant GM_addStyle
// @run-at document-end
// ==UserScript==
// @name Remove animation style from Steam sale pages
// @namespace remove-animation-on-steam-sales
// @match https://store.steampowered.com/sale/*
// @icon https://store.steampowered.com/favicon.ico
// @version 1.0
// @author xPaw
// @grant GM_addStyle
// ==/UserScript==
@xPaw
xPaw / wordle.js
Last active January 8, 2022 12:35
const words = [
"cigar", "rebut", "sissy", "humph", "awake", "blush", "focal", "evade", "naval", "serve", "heath", "dwarf", "model", "karma", "stink", "grade", "quiet", "bench", "abate", "feign", "major", "death", "fresh", "crust", "stool", "colon", "abase", "marry", "react", "batty", "pride", "floss", "helix", "croak", "staff", "paper", "unfed", "whelp", "trawl", "outdo", "adobe", "crazy", "sower", "repay", "digit", "crate", "cluck", "spike", "mimic", "pound", "maxim", "linen", "unmet", "flesh", "booby", "forth", "first", "stand", "belly", "ivory", "seedy", "print", "yearn", "drain", "bribe", "stout", "panel", "crass", "flume", "offal", "agree", "error", "swirl", "argue", "bleed", "delta", "flick", "totem", "wooer", "front", "shrub", "parry", "biome", "lapel", "start", "greet", "goner", "golem", "lusty", "loopy", "round", "audit", "lying", "gamma", "labor", "islet", "civic", "forge", "corny", "moult", "basic", "salad", "agate", "spicy", "spray", "essay", "fjord", "spend", "kebab", "guild", "aback", "motor",
// ==UserScript==
// @name Display game id on IGDB
// @namespace https://www.igdb.com/games/
// @version 1.0
// @author xPaw
// @match https://www.igdb.com/games/*
// @icon https://www.igdb.com/favicon.ico
// @grant none
// ==/UserScript==
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#if defined( _WIN32 ) && !defined( _X360 )
#include <windows.h> // for widechartomultibyte and multibytetowidechar
@xPaw
xPaw / lazyload_intersection.js
Last active October 20, 2020 09:31
Lazy load elements when they appear in view using IntersectionObserver
let observer;
function LazyLoad( element, callback )
{
if( !( 'IntersectionObserver' in window ) )
{
callback();
return;
}
<?php
declare(strict_types=1);
// Alternatively manifest_ios
$manifest = file_get_contents( 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-Underlords-Android/master/manifest_android.json' );
$manifest = json_decode( $manifest, true );
$out = "#!/bin/bash\n";
foreach( $manifest[ 'assets' ] as $assetName => $asset )
//ValveGames/rel/swarm/game/bin/AdminServer.dll#8 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/Dist2alpha.exe#9 - edit change 6019183 (binary+x)
//ValveGames/rel/swarm/game/bin/Dist2alpha.pdb#9 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/FileSystemOpenDialog.dll#7 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/FileSystemOpenDialog.pdb#7 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/FileSystem_Stdio.dll#12 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/MaterialSystem.dll#10 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/QC_Eyes.exe#7 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/QC_Eyes.pdb#7 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/SDKLauncher.exe#15 - edit change 6019183 (binary)
//ValveGames/rel/swarm/game/bin/ep3.fgd#1 - branch change 863790 (text)
//ValveGames/rel/swarm/game/swarm/sound/scapes/2D/interior1/Beep3.wav#1 - branch change 863790 (binary)
//ValveGames/rel/swarm/game/swarm_base/sound/physics/metal/metal_box_footstep3.wav#1 - branch change 863790 (binary)
//ValveGames/rel/swarm/game/swarm_base/sound/physics/plaster/ceiling_tile_step3.wav#1 - branch change 863790 (binary)
//ValveGames/rel/swarm/game/swarm_base/sound/physics/plaster/drywall_footstep3.wav#1 - branch change 863790 (binary)
//ValveGames/rel/swarm/game/swarm_base/sound/physics/wood/wood_box_footstep3.wav#1 - branch change 863790 (binary)
//ValveGames/rel/swarm/src/game/client/client_ep3.vpc#1 - branch change 863790 (text)
//ValveGames/rel/swarm/src/game/client/ep3/Splatter.cpp#1 - branch change 863790 (text)
//ValveGames/rel/swarm/src/game/client/ep3/c_blob_mine.cpp#1 - branch change 863790 (text)
//ValveGames/rel/swarm/src/game/client/ep3/c_blob_mine.h#1 - branch change 863790 (text)