Skip to content

Instantly share code, notes, and snippets.

View ho0ber's full-sized avatar

Samuel Colburn ho0ber

View GitHub Profile
@ho0ber
ho0ber / battle.js
Last active January 18, 2019 15:04 — forked from chrisinajar/battle.js
Battle whitelist for screeps
// usernames are all lowercase, we compare with to lower
var USERNAME_WHITELIST = ['chrisinajar', 'ho0ber', 'fractaloop', 'n7-anthony', 'overra', 'tyrel', 'fervens'];
module.exports = {
findEnemy: findEnemy
};
/*
var target = findEnemy(creep);
*/
@ho0ber
ho0ber / google-meet-spacebar.user.js
Last active April 15, 2020 17:11 — forked from benjaminoakes/google-meet-spacebar.user.js
Google Meet/Hangouts Push-to-Talk
// ==UserScript==
// @name Google Push to Talk
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Hold down the spacebar to unmute the mic in Google Meet; tapping the spacebar toggles mute.
// @author Marc Reynolds (github.com/marcreynolds)
// @match https://meet.google.com/*
// @updateUrl https://gist.github.com/marcreynolds/6c629eaf8bfe87986ebe90ebea7daf85/raw/google-meet-spacebar.user.js
// @grant none
// ==/UserScript==
@ho0ber
ho0ber / test_thing.py
Created July 1, 2020 18:37 — forked from jamielennox/test_thing.py
requests_mock and pytest
import thing
import pytest
import requests_mock as rm_module
@pytest.fixture
def requests_mock(request):
m = rm_module.Mocker()
m.start()