Skip to content

Instantly share code, notes, and snippets.

Always hacking

Remy Sharp remy

Always hacking
Block or report user

Report or block remy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View twitch-session-2019-08-14.js
/* eslint-env browser */
/* global jq: true */
const escaped = new Map([['<', '&lt;'], ['>', '&gt;']]);
const $$ = s => Array.from(document.querySelectorAll(s));
const $ = s => document.querySelector(s);
let jqLoaded = false;
const scrollPositions = [];
remy /
Created Jul 31, 2019
Workshop directions

This will configure your setup ready for the Next workshop:

  1. Create a working directory: mkdir next-workshop
  2. Go into the directory: cd next-workshop
  3. Save the package.json file (included in this gist) to the working directory and save it as "package.json"
  4. Assuming you've installed Node and also have npm, run npm install
remy / .eslintrc.js
Created Jul 31, 2019
eslint config for browser and module support
View .eslintrc.js
module.exports = {
env: {
browser: true,
es6: true
rules: {
'no-console': 0
extends: 'eslint:recommended',
parserOptions: {
remy / popular-from-google-analytics.js
Last active Jul 24, 2019
Generates a summary file of popular blog posts from my Google Analytics raw data
View popular-from-google-analytics.js
View mousehold.jquery.js
* jQuery mousehold plugin - fires an event while the mouse is clicked down.
* Additionally, the function, when executed, is passed a single
* argument representing the count of times the event has been fired during
* this session of the mouse hold.
* @author Remy Sharp (
* @date 2006-12-15
* @example $("img").mousehold(200, function(i){ })
* @desc Repeats firing the passed function while the mouse is clicked down
View _headers
Content-type: text/plain
remy /
Last active Dec 31, 2018
Source to bandersnatch easter egg

See files below.

Note that the .tap file is corrupted - I've done an incomplete job of encoding, but the bytes are accurate to the demodulation process.

You can see the hidden easter egg in the decoded .tap file that reads "bigger digger bigger bee" - which apparently could be a reference to the authors ZX demo here

remy / html-slides.js
Last active Nov 29, 2018
A basic-ish HTML slide to image generator.
View html-slides.js
const puppeteer = require('puppeteer');
const content = `
/* this injected CSS allows me to hide elememts on the page */
const total = 142; // total number of slides
// pages is an array of numbers, unless you need
// a single page, which can be passed through on
remy / .eslintrc.json
Created Aug 3, 2018
My minimum eslintrc file needed (env: node + es6) - requires global install of eslint modules…
View .eslintrc.json
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
"rules": {
"no-console": 0
remy /
Last active Jul 25, 2018
User style sheet to put the README in the right place.

README first for github

Using a user style sheet extension, this CSS should give you enough targetting to put the README above the files, putting the important information in the right place.

I use uptight, by the late Chloe Weil, you can use what you want.


You can’t perform that action at this time.