How to add a context menu shortcut to .php files, so that a PHP server is run there. Tested on Windows 10.
Versions 5.4+ have a built-in web server.
Download PHP from windows.php.net.
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { | |
if (p < 0.5) | |
return 0.5 * pow(2*p, g); |
#KeyHistory 0 | |
#NoTrayIcon | |
#SingleInstance force | |
#Persistent | |
SetStoreCapslockMode, off | |
; Moves the mouse pointer, with a smaller jump if Shift is held. | |
MouseControl(deltaX, deltaY, regularJump := 60, smallJump := 8) { | |
multiplier := regularJump | |
if GetKeyState("Shift", "P") |
/* If body is centered, this will prevent the contents from shifting if a scrollbar appears. */ | |
@media screen and (min-width: 60em) { | |
html { | |
margin-left: calc(100vw - 100%); | |
} | |
} |
(function() { | |
var targetNode = document.querySelector('.player-timedtext'); | |
function callback(mutationsList) { | |
const e = document.querySelectorAll('.player-timedtext-text-container > *'); | |
if (e) { | |
e.forEach(sub => { | |
const before = sub.innerHTML; | |
let after = before |