This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import puppeteer from 'puppeteer'; | |
import * as readline from 'node:readline/promises'; | |
// Get the info we need | |
const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); | |
const username = await rl.question('Username: '); | |
const password = await rl.question('Password: '); | |
const code = await rl.question('OTP code: '); | |
// Start a browser and a recording |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"props":{ | |
"pageProps":{ | |
"data":[ | |
{ | |
"id":280, | |
"name":"Guildford", | |
"shortName":"Guildford", | |
"previousWinner":{ | |
"party":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
set N 2 | |
set FILES 1838 1024 0489 0063 | |
curl -o '#1.mp3' 'https://matteason.github.io/scotrail-announcements-june-2022/announcements/{'(string join , $FILES)'}.mp3' | |
mp3wrap sr$N.mp3 (string split ' ' (string join '.mp3 ' $FILES).mp3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twitter.com##section:has(> h1:has-text(Trending now)) | |
twitter.com##div:has(> aside[aria-label="Who to follow"]) | |
twitter.com##nav a:has-text(Explore) | |
twitter.com##nav a[href="/explore"] | |
twitter.com##main:has(div[style*="hex"]:has(a[href*="nft"])) ! entire profile page | |
twitter.com##article:has(div[style*="hex"]) | |
OR if you don't want to block quoted tweets of those tweets: | |
twitter.com##article:has(div[style*="48px"]:has(div[style*="hex"])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aahed | |
aalii | |
aapas | |
aargh | |
aarti | |
abaca | |
abaci | |
aback | |
abacs | |
abaft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
import tweepy | |
# config.py contains all the all-caps variables used below | |
from config import * | |
localfile = os.path.join(LOCALDIR, 'count') | |
try: | |
fp = open(localfile) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Postcode,LAD GSS code | |
AB10 7QB,S12000033 | |
AB10 7QB,S12000034 | |
AB12 3GQ,S12000033 | |
AB12 3GQ,S12000034 | |
AB12 3GW,S12000033 | |
AB12 3GW,S12000034 | |
AB12 3LN,S12000033 | |
AB12 3LN,S12000034 | |
AB12 3LP,S12000033 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Collapse project columns | |
// @namespace mysociety.github.projects.collapse | |
// @description Collapse project columns (based on https://gist.github.com/yuyuvn/268c754325e945ceda24e4ce661a27ce) | |
// @include https://github.com/*/*/projects/* | |
// @version 1.0 | |
// @grant none | |
// ==/UserScript== | |
document.querySelectorAll(".js-details-container").forEach(function(node){ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder