Skip to content

Instantly share code, notes, and snippets.


James Skinner spiralx

View GitHub Profile
spiralx / html-source-formatter.xsl
Created Sep 29, 2021
XSLT stylesheet to transform HTML into its own formatted and highlighted source code
View html-source-formatter.xsl
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="html.xsl"?>
<!DOCTYPE stylesheet [
<!ENTITY nbsp "&#160;">
<!ENTITY QUOTE "<xsl:text>&quot;</xsl:text>">
spiralx / is-anagram.js
Last active Aug 20, 2021
A bunch of methods for checking if two strings are anagrams of each other
View is-anagram.js
(() => {
function run(fns, a, b, exp, gn, iters = 100000) {
for (const fn of fns) {
const name =
if (fn(a, b) !== exp) {
console.warn(`ERROR: ${name}('${a}', '${b}') = %o`, fn(a, b))
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View console-message-v2.js
// Properties whose values have a CSS type
// of either <integer> or <number>
spiralx / angular-io.user.css
Created Feb 7, 2019
User CSS for
View angular-io.user.css
/* ==UserStyle==
@description Sort out the horrible styling
@author James Skinner <> (
@version 1.0.0
@preprocessor stylus
@var text text-size "Text size" 13pt
@var text line-height "Line height" 1.5em

Ramda Bookmarklet

Use this bookmarklet to load Ramda on any website. To "install":

  1. Create a new bookmark in your bookmarks bar (what it points to doesn't matter, any page)

  2. Edit the new bookmark and replace the URL with the following:

spiralx / settings.json
Created Oct 23, 2018
Current work VS Code settings file
View settings.json
// Place your settings in this file to overwrite the default settings
"beautify.options": {
"end_with_newline": true,
"newline_between_rules": true,
"preserve_newlines": true,
"selector_separator_newline": true,
"space_around_combinator": true,
"space_around_selector_separator": true
spiralx / amazon-offer-page-links.user.js
Created Jul 13, 2018
Amazon - Offer page links user script
View amazon-offer-page-links.user.js
spiralx / reddit-load-comments-inline.user.js
Last active Jun 1, 2021
Reddit - Load 'Continue this thread' inline user script
View reddit-load-comments-inline.user.js
// ==UserScript==
// @name Reddit - Load 'Continue this thread' inline
// @description Changes 'Continue this thread' links to insert the linked comments into the current page
// @author James Skinner <> (
// @namespace
// @version 1.9.5
// @downloadURL
spiralx / watcher.js
Created Jul 4, 2018
A small module I've written to let you subscribe to DOM changes that match specified criteria
View watcher.js
var Watcher = (function () {
'use strict';
// ----------------------------------------------------
var Css;
(function (Css) {
Css.Inverse = 'color: white; background: black';
Css.Error = 'font-weight: bold; color: #f4f';
Css.Link = 'color: #05f; font-weight: normal; text-decoration: underline';
Css.Bold = 'font-weight: bold';