Skip to content

Instantly share code, notes, and snippets.

View aymericbeaumet's full-sized avatar
🔬
Experimenting

Aymeric Beaumet aymericbeaumet

🔬
Experimenting
View GitHub Profile
@aymericbeaumet
aymericbeaumet / .gitignore
Last active August 29, 2015 14:24
Benchmarking Array.prototype.indexOf and Object in operator
node_modules/
// Send the key to http://xxxxxxxxxx.src.sr
function generateKey() {
var input = document.querySelector('#user-input').value
if (input.length >= 10) {
document.querySelector('#result').textContent = hash(input)
}
}
function hash(payload) {

Keybase proof

I hereby claim:

  • I am aymericbeaumet on github.
  • I am aymericbeaumet (https://keybase.io/aymericbeaumet) on keybase.
  • I have a public key whose fingerprint is 9979 A61B 3577 119F CAF0 5F84 98A8 7F81 DCF7 32EA

To claim this, I am signing this object:

const express = require("express"); // https://expressjs.com/en/4x/api.html
const fs = require("fs"); // https://nodejs.org/api/fs.html
const path = require("path"); // https://nodejs.org/api/path.html
/*
* This function exists for convenience only. It allows to create a new
* middleware with the given parameters (here we only expect a single one: the
* root directory). It mimics the genuine express.static function signature
* (modulo the options argument).
*/
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active December 23, 2024 12:58
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@aymericbeaumet
aymericbeaumet / .dockerignore
Last active November 13, 2020 23:26
[Recipe] Docker multi-stage + Typescript + Node
.gitignore
@aymericbeaumet
aymericbeaumet / inoreader.xml
Last active December 15, 2020 20:58 — forked from nikitavoloboev/inoreader.xml
Fork of Ninika's inoreader OPML used in my Aggr config: https://github.com/aymericbeaumet/aggr-config
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions of nikita.voloboev from Inoreader [https://www.inoreader.com]</title>
</head>
<body>
<outline text="1." title="1.">
<outline text="FunctionallyParanoid.com" title="FunctionallyParanoid.com" type="rss" xmlUrl="https://functionallyparanoid.com/feed/" htmlUrl="https://functionallyparanoid.com"/>
<outline text="V8" title="V8" type="rss" xmlUrl="https://v8.dev/blog.atom" htmlUrl="https://v8.dev/"/>
<outline text="Apex Software" title="Apex Software" type="rss" xmlUrl="https://apex.sh/blog/feed.rss" htmlUrl="https://apex.sh/blog/"/>