Skip to content

Instantly share code, notes, and snippets.


Thomas Aylott subtleGradient

View GitHub Profile
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;
subtleGradient / fiddle.html
Last active Nov 24, 2020 — forked from anonymous/fiddle.html
(source: Android monkey script generator UI thing
View fiddle.html
<!DOCTYPE html>
<meta charset="UTF-8">
<!-- <script src="lib/monkey keycodes.js"></script> -->
View fiddle.css
#lulz {
#lulz td {
border: 2px solid black;
#lulz td.chosen {
border-color: red;
View fiddle.css
html,body{font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;}
hr{margin:2ex 0;}
div{border:4px solid #AEFFE6;background:#66FFCC;}
p {border:2px solid #66FFCC;background:#ffc;color:#cc0;}
subtleGradient / activetable.js
Last active Jan 10, 2018 — forked from stevesouders/activetable.js
ActiveTable is a bookmarklet that makes any table sortable. It also allows you to remove columns, and it remembers the removed columns for next time. Use alt+click to UNhide all columns (and clear memory). To use it, create a bookmark called "ActiveTable" that has this URL: javascript:(function(){ var jselem=document.createElement('SCRIPT'); jse…
View activetable.js
// ActiveTable - a bookmarklet to make tables sortable and editable
function init() {
var aHrows = getHrows();
var numHrows = aHrows.length;
var aHidden = getHiddenColumns();
ATpopup = document.createElement("div"); = "position: absolute; visibility: hidden; padding: 0; font-family: Arial; background-color: rgba(255, 255, 255, 0.9); border-radius: .5em; text-align: center; box-shadow: .05em .05em .5em #00C;";
ATpopup.innerHTML = "<a href='sort' title='sort' onclick='sortColumn(); return false'><img border=0 src='' style='padding-top: 0.2em;'></a><br><a href='hide' style='color: #C00; font-family: monospace; font-size: 1.5em; text-decoration: none;' title='hide' onclick='hideColumn(); return false'>x</a>"; // TODO - use protocol-less URL for img
View 2016-03-22 Standalone Prototype with Babel and React v15rc2.html
<!doctype html>
<meta charset=utf-8>
<style>html{font-family:Helvetica Neue,Helvetica,sans-serif;}</style>
<div id=RenderTarget>
<script type="text/babel">
subtleGradient / dabblet.css
Last active Aug 29, 2015 — forked from anonymous/dabblet.css
SixteenColors Prototype
View dabblet.css
* The first commented line is your dabblet’s title
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
View MyAwesomeNSUserNotificationCenterDelegate.js
var $ = require('NodObjC');
module.exports = function(props){
var NSUserNotificationCenterDelegate = $.NSObject.extend('NSUserNotificationCenterDelegate');
NSUserNotificationCenterDelegate.addMethod('init', { retval: '@', args: ['@', ':'] }, function(self) {
$.NSUserNotificationCenter('defaultUserNotificationCenter')('setDelegate', self);
return self;
View gist:10484353
tell application "Google Chrome"
set theUrl to ""
if (count every window) = 0 then
make new window
end if
set found to false
set theTabIndex to -1