Skip to content

Instantly share code, notes, and snippets.

Avatar
🚪

Tim Dorr timdorr

🚪
View GitHub Profile
View gist:5d1b67996e9daa0b0700f494aba61e48
P: GD492X-YMBP2J-MVRLR-847WC-V5NTY-J3HLY
S: 8LG52T-DYXG9W-QYYJL-AAC7B-GMFV5-2GZ6L
View worldometers.js
// ==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==
View adventure.py
# 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 Sep 18, 2020
Voice over header file from Supergiant's game Hades.
View VO.h
#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
View 1-all-in-one.js
class NotificationDropdown extends Component {
state = {};
async componentDidMount() {
const notifications = await fetchNotifications();
this.setState({ notifications });
}
render() {
const { notifications } = this.state;
View troll.rb
class Module
def method_added(method)
undef_method(method) if rand > 0.999999
end
end
@timdorr
timdorr / react-dom.async.js
Created Nov 29, 2017
React 16.2.0 with async rendering enabled.
View react-dom.async.js
/** @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 Nov 8, 2017
isPlainObject iframe test case
View test.html
<!DOCTYPE html>
<html>
<body>
<script>
function isPlainObject(obj) {
if (typeof obj !== 'object' || obj === null) return false
let proto = obj
while (Object.getPrototypeOf(proto) !== null) {
View redux.js
'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'));
/**