This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>(Zero)fill</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the internal class name of the given object. | |
* @private | |
* @param {*} value | |
* @param {String} [compare] | |
* @returns {Boolean|String} | |
*/ | |
function _is(value, compare) | |
{ | |
var type = Object.prototype.toString.call(value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById('siteNotice').remove(); | |
document.querySelector('link[href^="/w/load.php?lang=de&modules=site.styles&only=styles&skin=vector"]').remove() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Converts A-Z to Mathematical Alphanumeric Symbols | |
const toMANS = (s, t = 0) => s.replace(/[a-z]/gi, c => String.fromCodePoint(119808 + t * 52 + c.charCodeAt(0) - (c.charCodeAt(0) < 97 ? 65 : 71))); | |
// Test | |
for (let i = 0; i < 13; i++) console.log(toMANS('Hello World!', i)); | |
// Output | |
// > 𝐇𝐞𝐥𝐥𝐨 𝐖𝐨𝐫𝐥𝐝! | |
// > 𝐻𝑒𝑙𝑙𝑜 𝑊𝑜𝑟𝑙𝑑! | |
// > 𝑯𝒆𝒍𝒍𝒐 𝑾𝒐𝒓𝒍𝒅! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jumble letters - Except the first and last one, to keep it readable | |
const jumbleWord = m => m[0] + [...m.substr(1, m.length - 2)].reverse().sort(() => Math.round(Math.random())).join('') + m[m.length - 1]; | |
const jumbleText = (t, i = 3) => t.replace(/\b\w(\w{2,})\w\b/gi, m => [...Array(i)].map(_ => jumbleWord(m)).find(e => e != m) || m); | |
// Test | |
let testText = "It doesn't matter in what order the letters in a word are, the only important\n" | |
+ "thing is that the first and last letter be at the right place. The rest can\n" | |
+ "be a total mess and you can still read it without problem. This is because\n" | |
+ "the human mind does not read every letter by itself, but the word as a whole." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.utils | |
{ | |
public class StringUtil { | |
static public function padStart(string:String, length:uint, padString:String = ' '):String { | |
var insert:String = ''; | |
for (var i:int = 0; i < length; i++) { | |
insert += padString; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hackInput = document.querySelector('#inputfield') | |
var hackHighlight = null | |
var hackCurrent = 0 | |
var hackInterval = 0 | |
function hack() { | |
hackHighlight = document.querySelector('#row1 .highlight') | |
if (!hackHighlight) { | |
clearInterval(hackInterval) |
A list of my currently installed plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll('.frame *') | |
.forEach((e, i) => { | |
e.style.visibility = 'hidden'; | |
setTimeout(() => e.style.visibility = 'visible', i * 100); | |
}); |
OlderNewer