Skip to content

Instantly share code, notes, and snippets.

Avatar
😜
Howdy

Thomas Aylott subtleGradient

😜
Howdy
View GitHub Profile
View 42_hand-sketch-97.info.markdown

This was drawn by the textmode artist agent_42 (member of the CiA art group) It was sketched in 1997 after the artist graduated from vocational school for Desktop Publishing, his mom forced him to take a drawing class.

This was the first thing he ever drew in class. Not too shabby right?

42_hand-sketch-97

View remove-wcostream-ads.bookmarklet.js
javascript:void(()=>[...document.querySelectorAll('.ui-block-a~script,.ui-block-a~center,.share,[data-role="content"][role="main"],[data-role="content"][role="main"]+.ui-grid-solo,.ui-block-a+div')].forEach(e=>e.parentNode.removeChild(e)))()
@subtleGradient
subtleGradient / command.js
Last active Aug 9, 2021 — forked from jonathantneal/command.js
Executable JavaScript Modules
View command.js
":" /*prettier-ignore*/ //#;exec /usr/bin/env node --input-type=module - "$@" < "$0"
import process from "process";
const { argv } = process;
console.log(argv);
View vtt.re
WEBVTT|(?<=^[A-Z][^.?!]+$)\n|^\d+.+align:center$| +|<[^>]+>|$\n\n
View DebugWebView.jxa.js.command
#!/usr/bin/env osascript -l JavaScript
// macOS JXA JavaScript for Automation
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function run(argv) {
Application('Safari').activate();
const { Safari } = Application('System Events').applicationProcesses;
const { Develop } = Safari.menuBars[0].menuBarItems;
View Safari iOS Debug.jxa.js
#!/usr/bin/env osascript -l JavaScript
// macOS JXA JavaScript for Automation
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function run(argv) {
Application('Safari').activate();
const { Safari } = Application('System Events').applicationProcesses;
const { Develop } = Safari.menuBars[0].menuBarItems;
View Dri-Frontend-monkeydancer-GUI-inspector.html
<!doctype html>
<meta charset=utf-8>
<title>inspector</title>
<style>
html{background:#333}
</style>
<!-- <script src="lib/monkey keycodes.js"></script> -->
<script>
View monkeydancer.sh
#!/usr/bin/env bash -l
# set -x
echo "Usage: $0 -s $SERIAL < /path/to/script.monkey" 1>&2
echo " More info: https://github.com/android/platform_development/blob/master/cmds/monkey/README.NETWORK.txt" 1>&2
echo " Example: https://github.com/android/platform_development/blob/master/cmds/monkey/example_script.txt" 1>&2
echo "" 1>&2
echo " type 'Hello World'" 1>&2
echo " press KEYCODE_ENTER" 1>&2
echo "" 1>&2
View ignoreEscapeKey.js
// ==UserScript==
// @name Keep Full Screen
// @namespace http://superuser.com/q/315949
// @description Prevents Escape key from leaving full screen.
// @include http://*
// @include https://*
// ==/UserScript==
document.documentElement.onkeydown = (event) => {
if (event.keyCode == 27) event.preventDefault();
console.log("Keep Full Screen");
View importUMD.js
export default async (url, module = {exports:{}}) =>
(Function('module', 'exports', await (await fetch(url)).text()).call(module, module, module.exports), module).exports