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 textArea = document.createElement('textarea'); | |
| textArea.setAttribute('id', 'disavow-quicklist'); | |
| document.body.appendChild(textArea); | |
| var $textArea = $('#disavow-quicklist'); | |
| $textArea.css({ | |
| top: 100, | |
| left: 0, | |
| position: 'fixed', |
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
| (function ($) { | |
| function randInt(max, min) { | |
| max = max || 1; | |
| min = min || 0; | |
| return parseInt(Math.random() * (max - min)) + min; | |
| } | |
| var letters = [ | |
| "a", "b", "c", "d", "e", "f", "g", "h", | |
| "i", "j", "k", "l", "m", "n", "o", "p", |
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"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <style> | |
| body { |
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
| import javax.swing.*; | |
| import java.applet.Applet; | |
| import java.awt.*; | |
| import java.awt.event.KeyEvent; | |
| import java.awt.event.KeyListener; | |
| import java.awt.event.MouseAdapter; | |
| import java.awt.event.MouseEvent; | |
| import java.awt.font.FontRenderContext; | |
| import java.awt.font.TextLayout; | |
| import java.awt.geom.Rectangle2D; |
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
| import javax.swing.*; | |
| import java.applet.Applet; | |
| import java.awt.*; | |
| import java.awt.event.KeyEvent; | |
| import java.awt.event.KeyListener; | |
| import java.awt.event.MouseAdapter; | |
| import java.awt.event.MouseEvent; | |
| import java.awt.font.FontRenderContext; | |
| import java.awt.font.TextLayout; | |
| import java.awt.geom.Rectangle2D; |
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
| <?php | |
| class Debug | |
| { | |
| public static $TIMESTAMPS = []; | |
| public static function timestamp(string $key = null) | |
| { | |
| $key = $key ?: count(static::$TIMESTAMPS); | |
| static::$TIMESTAMPS[$key] = microtime(true); |
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
| <?php | |
| function pretty($thing) | |
| { | |
| return str_replace([ | |
| '{', '}', ':', | |
| ], [ | |
| '[', ']', ' =>', | |
| ], json_encode($thing, JSON_PRETTY_PRINT)); | |
| } |
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
| async function clock(actions, timeout) { | |
| start = performance.now() | |
| for (let i = 0; i < actions.length; i++) { | |
| await actions[i]() | |
| } | |
| return setTimeout(clock.bind(clock, actions, timeout), timeout - (performance.now() - start)) | |
| } | |
| clock(new Array(3).fill(undefined).map((_, i) => () => { | |
| console.log(i, performance.now()) | |
| return new Promise(res => setTimeout(res, 500)) |
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
| <?php | |
| namespace Lib; | |
| class Arr | |
| { | |
| public static function set(string $key, $value, array $container = []): array | |
| { | |
| list($keys, $valueKey) = static::breakKey($key); | |
| $end = &static::seekEnd($keys, $container); |
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
| (function(){ | |
| var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; | |
| // The base Class implementation (does nothing) | |
| Object.Class = function(){}; | |
| // Create a new Class that inherits from this class | |
| Class.extend = function(prop) { | |
| var _super = this.prototype; |