Skip to content

Instantly share code, notes, and snippets.

View timdorr's full-sized avatar
🚪

Tim Dorr timdorr

🚪
View GitHub Profile
P: GD492X-YMBP2J-MVRLR-847WC-V5NTY-J3HLY
S: 8LG52T-DYXG9W-QYYJL-AAC7B-GMFV5-2GZ6L
// ==UserScript==
// @name Worldometers Tweaks
// @namespace http://tampermonkey.net/
// @version 1.0.1
// @description Add data to Worldometers
// @author timdorr
// @match https://www.worldometers.info/coronavirus/country/us/
// @icon https://www.google.com/s2/favicons?domain=worldometers.info
// @grant none
// ==/UserScript==
# For testsolvers using the Python version: please do not scroll further; you will get spoiled.
# (Instead, just run this Python script via `python adventure.py`)
@timdorr
timdorr / VO.h
Last active September 18, 2020 02:29
Voice over header file from Supergiant's game Hades.
#ifndef _VO_H
#define _VO_H
#define ACHILLES_0002 0
#define ACHILLES_0003 1
#define ACHILLES_0004 2
#define ACHILLES_0005 3
#define ACHILLES_0006 4
#define ACHILLES_0007 5
#define ACHILLES_0008 6
class NotificationDropdown extends Component {
state = {};
async componentDidMount() {
const notifications = await fetchNotifications();
this.setState({ notifications });
}
render() {
const { notifications } = this.state;
class Module
def method_added(method)
undef_method(method) if rand > 0.999999
end
end
@timdorr
timdorr / react-dom.async.js
Created November 29, 2017 18:22
React 16.2.0 with async rendering enabled.
/** @license React v16.2.0
* react-dom.development.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
@timdorr
timdorr / test.html
Created November 8, 2017 04:08
isPlainObject iframe test case
<!DOCTYPE html>
<html>
<body>
<script>
function isPlainObject(obj) {
if (typeof obj !== 'object' || obj === null) return false
let proto = obj
while (Object.getPrototypeOf(proto) !== null) {
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var isPlainObject = _interopDefault(require('lodash/isPlainObject'));
var $$observable = _interopDefault(require('symbol-observable'));
/**