Skip to content

Instantly share code, notes, and snippets.

@WilliamsJack
WilliamsJack / premium.js
Created September 5, 2022 12:42
Premium popup extension for LiveAtlas
let premiumHtml = document.createElement('div');
premiumHtml.innerHTML = `
<section id="premium-popup" class="sidebar__section">
<h2 class="section__heading">
<span>Explore MCAlagaësia</span>
</h2>
<div id="premium-content" class="section__content" aria-hidden="false">
<div class="section__skeleton"><b>At some point, you have to stop looking at the map and start your adventure.</b><br><br>Are you ready to take your first steps into MCAlagaësaia?<br><br>With Arcaena Premium, you can explore MCAlagaësia in-person in Minecraft, and support the continued work on the project.</div>
</div>
<div class="section__skeleton">
@WilliamsJack
WilliamsJack / spider.sh
Created August 24, 2022 12:30
Create a list of URLs in a format that can be submitted to the Internet Archive
#!/bin/bash
# Creates a list of URLs in a format that can be submitted to the Internet Archive
# HOME - The page to start at
HOME="https://www.sfxrescue.com/"
# DOMAINS - Do not archive outside of these domains
DOMAINS="sfxrescue.com"
# DEPTH - Depth of search. The Internet Archive can optionally process backlinks going one level deeper, so for a normal site you won't need to increase this.
DEPTH=4
# OUTPUT - Output file
OUTPUT="./urls.csv"
@WilliamsJack
WilliamsJack / thermal_demo.py
Created February 4, 2020 06:35
Generate a list of thermal camera pixels from an image used by the SIGHTS software. Useful to create demo images.
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 30 16:55:05 2019
@author: willi
"""
from PIL import Image
import colorsys
width = 32
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JS Insert Test</title>
</head>
<body>
<button id="insert" onclick="insertFunction();">Insert JS</button>