Skip to content

Instantly share code, notes, and snippets.

@kakaroto
kakaroto / modules.md
Created July 24, 2020 02:38
Foundry VTT Modules Translations
@kakaroto
kakaroto / systems.md
Last active July 24, 2020 02:37
Foundry VTT Game Systems Translations
  • EN - English: 284
  • FR - French: 284

Alien RPG - Paul Watson

  • EN - English: 119
  • DE - Deutsch: 73
DE: Missing 46 strings:
	  "ALIENRPG.ArmorRating": Armor Rating
 "ALIENRPG.Suit": Suit/Armor
@kakaroto
kakaroto / pyj2js.js
Last active May 1, 2020 23:34
Script to convert pyj files into js files (very approximate)
const regexps = [
// comments
[new RegExp(/#/gm), "//"],
// Functions
[new RegExp(/def *\(([^:)]*)\) *: *$/gm), "($1) => {"],
[new RegExp(/def *\(([^:)]*)\) *: *return +(.*);/gm), "($1) => $2"],
[new RegExp(/def *\(([^:)]*)\) *: *(.*);/gm), "($1) => $2"],
[new RegExp(/def *\(([^:)]*)\) *: *return +(.*)$/gm), "($1) => $2"],
[new RegExp(/def *\(([^:)]*)\) *: *(.+)$/gm), "($1) => $2"],
@kakaroto
kakaroto / proxy-all.js
Created March 7, 2020 12:49
Proxy to look at what get/set/call happens in an object
const rand = Math.round(Math.random() * 1000);
const proxy = new Proxy(toProxy, {
get: (obj, prop) => {
const value = obj[prop];
console.log("GET : ", rand, prop, value);
if (value instanceof Function) {
return new Proxy(value, {
apply: (func, thisArg, argumentList) => {
console.log("APPLY : ", rand, prop, argumentList);
const ret = func.apply(thisArg, argumentList);
@kakaroto
kakaroto / R20ImportCompendium.js
Last active September 11, 2019 08:38
Import the current compendium elements into your Roll 20 campaign
/*
* Paste into the chrome dev console of your Roll 20 campaign.
* Select the compendium category to import (you can do a search or filter results)
* Enter 'importCurrentCompendium()' in the dev console to start importing compendiums into your handouts
* Don't touch the compendium tab until it finishes
* If you want to import spells, reload the page to make sure there are no other hidden or closed character sheets
* then open a single character sheet, the one where you want to import all your spells, then in the dev console
* enter the command 'importCurrentcompendium(2, true)' and let it import all the spells into that character.
*/
async function importCurrentCompendium(timeout_per_item=10, spells=false) {
@kakaroto
kakaroto / game-giveaway.md
Last active January 3, 2019 01:36
Humble Bundle games that are giftable

List of available games for Twitch giveaway

This is the list of available games that are available for my Twitch giveaway. I bought these games from various Humble Bundles over the years and the majority of them have not been played or redeemed.

I am giving up some of these games in my Twitch giveaway randomly to one of my followers every month. All you need to do to participate is to follow me on Twitch (https://www.twitch.tv/kakarotodm) and come say hi from time to time!

If you win, you can choose any game that isn't marked as "Redeemed". A game that is marked as "not giftable" just means that I will see the Steam/PSN/Uplay/etc.. key and give it to you, but for the rest, you will receive a gift email that will alow you to uncover the redeem key on your own. Some things might be an exception, such as "Day of the Devs VIP Ticket" which expired in 2016, but most of the games are redeemable through Steam.

@kakaroto
kakaroto / humble-bundle-extract.js
Last active May 29, 2024 13:07
Script to extract list of games in Humble Bundle Library
/*
* Taken from https://www.reddit.com/r/GarlicMarket/comments/7sjcja/meta_how_to_easily_pull_a_list_of_all_your/
* Modified by KaKaRoTo
*/
//if you're not on the first page navigate to the first page
if($('.js-jump-to-page:first').text() != "1"){
$('.js-jump-to-page:nth-child(2)').click()
}
// Find how many pages of games you have by getting the text inside the last page button

Keybase proof

I hereby claim:

  • I am kakaroto on github.
  • I am kakaroto (https://keybase.io/kakaroto) on keybase.
  • I have a public key whose fingerprint is 1B5A 42BC 46BC C731 63E1 0121 AAFC 4B34 BBEB B31C

To claim this, I am signing this object: