Skip to content

Instantly share code, notes, and snippets.

View salmonmoose's full-sized avatar
🫎

Amelia Fletcher salmonmoose

🫎
View GitHub Profile
// ==UserScript==
// @name The Riverboat Helper
// @namespace http://tampermonkey.net/
// @version 2024-09-10
// @description Things I don't like in the Riverboat.gg site
// @author salmonmoose
// @match https://www.riverboat.gg/
// @icon https://www.google.com/s2/favicons?sz=64&domain=riverboat.gg
// @grant none
// ==/UserScript==
@salmonmoose
salmonmoose / camera_test.html
Created July 5, 2023 07:20
Just a thing to run on a phone so I can learn about the cameras
<html>
<body>
<h1>Mobile tester</h1>
</body>
</html>
@salmonmoose
salmonmoose / userscript_embiggen.js
Created March 17, 2023 08:56
Userscript to bold characters at start of each word.
// ==UserScript==
// @name First character highlight
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Highlight the first 2 characters of words to aid with readability
// @author salmonmoose
// @match *://*/*
// @require https://code.jquery.com/jquery-3.6.0.min.js
// @grant none
// ==/UserScript==
import sys
max = sys.maxsize
min = -sys.maxsize -1
for i in range(min, max):
print ('{0} - {1} = 45'.format(i, i-45))
div.fogged_img_holder {
padding: 10px;
}
div.fogged_img_holder img {
width: 100%;
box-shadow: 5px 5px 5px #888888;
}
div.fogged_logo {

Keybase proof

I hereby claim:

  • I am salmonmoose on github.
  • I am salmonmoose (https://keybase.io/salmonmoose) on keybase.
  • I have a public key whose fingerprint is 67D2 80ED A59F 3313 DF93 7068 9FB2 4E36 9573 580E

To claim this, I am signing this object:

@salmonmoose
salmonmoose / gist:c6938ac0da82ce4566c8
Created June 19, 2015 05:43
PokerKingdoms AI Test 1
This file has been truncated, but you can view the full file.
Running PokerKingdomsUnity.Assembly-CSharp.PokerKingdoms.AITests.GenerateHands ...
===TABLE===
QC 3S 8H 5S 4C
JH 0D KD 0S JS
6S 6D 6C 4H 8S
9C AH KH JD 5D
4D KC 8C KS AS
===========
===SELECTION===
(0, 0), (0, 1), (0, 2), (1, 2), (2, 2)
@salmonmoose
salmonmoose / gist:77120eafb467665f1f98
Created March 19, 2015 03:58
Round a number up to a significant number of digits.
function ceilToSignificant($number, $figures) {
$digits = ceil(log10($number < 0 ? -$number : $number));
$power = $figures - (int) $digits;
$magnitude = pow(10, $power);
$shifted = ceil($number * $magnitude);
return $shifted / $magnitude;
/*
* OpenSimplex (Simplectic) Noise for 3D in Java
* (Preliminary Release)
*
* KdotJPG
*/
public class OpenSimplexNoise {
private static final double STRETCH_CONSTANT_3D = -1.0 / 6;
@salmonmoose
salmonmoose / gist:1c570d99bc6508e6fa73
Created July 2, 2014 07:08
Basic Collectd python plugin for Transmission
import collectd
import random
import transmissionrpc
pending = 0
checking = 0
downloading = 0
seeding = 0
stopped = 0