Skip to content

Instantly share code, notes, and snippets.

View johnolek's full-sized avatar

John Oleksowicz johnolek

View GitHub Profile
@johnolek
johnolek / 10_fast_fingers_cheat.js
Last active June 8, 2018 21:00
This is a cheat/bot for 10fastfingers.com. Copy and paste into your browser's console when there is a game present and it should just work. Change the targetWpm value and it will try to get as close as possible to it.
class TenFastCheater {
constructor() {
const spaceEvent = $.Event('keyup')
spaceEvent.which = 32
this.spaceEvent = spaceEvent
this.adjustmentStep = 50
this.minDelay = 50
this.randomRange = 10
this.targetWpm = 157
@johnolek
johnolek / .htaccess
Last active October 26, 2016 01:04
.htaccess RewriteRule to serve WordPress images from a different domain
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(wp-content/uploads/\d+/.*)$ http://example.com/$1 [R=301,NC,L]
</IfModule>
@johnolek
johnolek / functions.php
Last active September 5, 2016 16:26
Remove Visual Editor from Gravity Forms Notifications Page
<?php
function remove_gf_notification_visual_editor($settings, $editor_id)
{
if ($editor_id === 'gform_notification_message') {
$settings['tinymce'] = false;
}
return $settings;
}