View khanacademy-bouncy-hat.js
//https://www.khanacademy.org/computer-programming/bouncy-hat/5273009214128128
var hatY = 0;
var HATY_MAX = 106;
var defaultSpringState = {
enabled: true,
mass: 10,
friction: 3,
stiffness: 120 / 100,
View fiddle.html
<style>
html{background:#333}
</style>
<!-- <script src="lib/monkey keycodes.js"></script> -->
<script>
var $DeviceSerialNumber = '*'
var hook = {emit:function(){}}
View fiddle.css
#lulz {
width:480px;
height:480px;
border-collapse:collapse;
}
#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;}
*{margin:0;padding:0;}
body{padding:2ex;}
hr{margin:2ex 0;}
html,body,input,td,th{font-size:100%;}
div{border:4px solid #AEFFE6;background:#66FFCC;}
p {border:2px solid #66FFCC;background:#ffc;color:#cc0;}
View idiomatic-web-naming.html
<html>
<!-- It's normal NOT TO indent the children of the html element -->
<body>
<!-- It's normal NOT TO indent the children of the body element -->
<div style="background-color: lime" data-moo-mar-maz="abc123" id="abc123">
<!-- It's normal TO indent the innards of almost all HTML elements -->
Hello World.
</div>
View fixLeftNavSelection.js
function fixLeftNavSelection() {
const leftNavBar = document.getElementById("DeltaPlaceHolderLeftNavBar");
if (leftNavBar == null) return;
const href = location.pathname + location.search;
const correctLink = leftNavBar.querySelector(
'li > a.ms-core-listMenu-item[href*="' + href + '"]'
);
if (correctLink == null) return;
// Remove selection from everything
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");
ATpopup.style.cssText = "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='http://stevesouders.com/images/sort_up_down.png' 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 Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>16B2657</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>BroadcomBluetoothHostControllerUSBTransport</string>
View load.js
function load(URL){ var scr, script
;(scr = document.createElement('script')).src = URL
;(script = document.getElementsByTagName('script')[0]).parentNode.insertBefore(scr, script)
}