Skip to content

Instantly share code, notes, and snippets.

perfectly splendid.

Alex Wilson alexwilson

perfectly splendid.
View GitHub Profile

Google Reader API

Note : This document is totally unofficial. You should not rely on anything on this document is you need an exact information.
Google Reader API has not officially been released. This document has been made mainly by reverse-engineering the protocol.


Google Reader API requires:

alexwilson / index.js
Created Apr 1, 2021
Origami package.json managed build-service URLs.
View index.js
const package = require('./package.json');
const origamiDependenciesFromPackageJson = Object.keys(package.dependencies)
// Find installed Origami modules.
.filter(key => key.startsWith('@financial-times/o-'))
// Reformat them
.map(key => ({
component: key.replace('@financial-times/', ''),
View EmptyTrashCommand.php
namespace AppBundle\Command;
use AppKernel;
use DateTime;
use Exception;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
alexwilson /
Last active Sep 24, 2020
Alex's Bakery - A Cooke Clicker autoclicker, using its official API

Alex's Bakery

What is this?**

In short, an auto-clicker for cookie-clicker.

How do I use this?**

This is bookmarklet friendly! You can drag & drop the following link into your bookmarks, or alternatively, directly into the game: Bookmarklet

Alternatively copy the below code, and save it as a bookmark.

View SpecialistPreflightLegacyHandler.php
<?php declare(strict_types=1);
namespace AppBundle\EventListener;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\{GetResponseEvent, FilterResponseEvent};
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpFoundation\HeaderBag;
class SpecialistPreflightLegacyHandler implements EventSubscriberInterface

Gopher translator service

Gophers are friendly creatures but it’s not that easy to communicate with them. They have their own language and they don’t understand English.

Create a program that starts a http server. This server should be able to translate English words into words in the gophers' language. Don't worry, the gophers' language is pretty easy.

The language that the gophers speak is a modified version of English and has a few simple rules.

  1. If a word starts with a vowel letter, add prefix “g” to the word (ex. apple => gapple)
  2. If a word starts with the consonant letters “xr”, add the prefix “ge” to the begging of the word. Such words as “xray” actually sound in the beginning with vowel sound as you pronounce them so a true gopher would say “gexray”.
  3. If a word starts with a consonant sound, move it to the end of the word and then add “ogo” suffix to the word. Consonant sounds can be made up of multiple consonants, a.k.a. a consonant cluster (e.g. "chair" -> "airchogo”).
alexwilson / ez-reset-admin-password.sql
Created Aug 21, 2018
eZ Platform - Reset Admin Password
View ez-reset-admin-password.sql
SET @key = 'test123456789';
SET @username = 'admin';
SET @del = '\n';
SET @hash = MD5(CONCAT(@username,@del,@key));
UPDATE ezuser SET password_hash=@hash WHERE login=@username;
View eZDeleteUsers.php
#!/usr/bin/env php
ini_set("memory_limit", "-1");
ini_set("date.timezone", "Europe/London");
$cli =& eZCLI::instance();
$script =& eZScript::instance();
alexwilson /
Last active Jan 7, 2017 — forked from jaysalvat/jquery-like-light.js
QuerySelectorAll jQuery-Like Helper
import $$ from '$$'
$$('p').forEach(a => a.innerText = "yolo")