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
Persistent variable 'ecos': Dictionary with 494 entries: | |
<None>: 894 | |
A00: 691 | |
A01: 505 | |
A02: 38 | |
A03: 62 | |
A04: 1105 | |
A05: 2055 | |
A06: 598 | |
A07: 2183 |
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
/** | |
* @typedef {{ | |
* names: string[]; | |
* numCandidates: number; | |
* numSeats: number; | |
* title: string; | |
* withdrawn?: number[]; | |
* uniqueBallots: string[]; | |
* uniqueBallotsWeight: number[]; | |
* dirtyBallotsCount: number; |
This file has been truncated, but you can view the full file.
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
[Event "London m2"] | |
[Site "London"] | |
[Date "1856.??.??"] | |
[Round "?"] | |
[White "Barnes, Thomas Wilson"] | |
[Black "Loewenthal, Johann Jacob"] | |
[Result "1-0"] | |
[ECO "C44"] | |
[PlyCount "49"] | |
[EventDate "1856.??.??"] |
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
const textify = id => `https://stackoverflow.com/suggested-edits/${id}`; | |
const url = new URL('https://api.stackexchange.com/2.3/suggested-edits'); | |
const params = { | |
key: 'U4DMV*8nvpm3EOpvf69Rxw((', // SE key | |
site: 'stackoverflow', | |
pagesize: '100', | |
order: 'desc', | |
sort: 'creation', | |
filter: '!b)GQTHKTSeuf2h' |
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
// convert [[id1], [id2], [id3], ...] to { id1: [], id2: [], id3: [] } | |
// each empty array is filled later with norm information | |
const objectify = array => array.reduce((a, v) => ({ ...a, [v]: []}), {}); | |
const players = {}; // {id: name} | |
function sortByDiff(entries) { | |
return entries | |
.filter(([, value]) => value.length > 1) // players with >1 GM norm | |
.map(([id, info]) => { | |
// convert YYYY-MM-DD to millis |
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
[Event "Zonal Vilnius"] | |
[Site "Vilnius"] | |
[Date "1975.08.??"] | |
[Round "9"] | |
[White "Bronstein, David Ionovich"] | |
[Black "Vasiukov, Evgeni"] | |
[Result "1/2-1/2"] | |
[ECO "B32"] | |
[PlyCount "46"] | |
[EventDate "1975.08.06"] |
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
/* waitForKeyElements(): The improved utility function for userscripts - now with MutationObservers and no jQuery! | |
Usage example: | |
waitForKeyElements( | |
'div.comments', | |
element => console.log('Look! A new element appeared!', element) | |
); | |
// ----------------------------------------------------------------- |
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 StackFocus | |
// @namespace https://github.com/SpectricSO/stack-scripts | |
// @version 1.0.0+21AF26D3—-117B344092BD | |
// @author SpectricSO | |
// @contributor double-beep | |
// @match https://stackoverflow.com/* | |
// @resource Clear https://cdn.sstatic.net/Img/stacks-icons/Clear.svg | |
// @license MIT | |
// @grant GM_getValue |
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 Generate Natty Reports | |
// @namespace https://github.com/SOBotics | |
// @version 1.0.0 | |
// @author double-beep | |
// @match https://chat.stackoverflow.com/rooms/111347/* | |
// @run-at document-body | |
// @grant GM_addStyle | |
// @grant GM_xmlhttpRequest | |
// @grant GM_setClipboard |
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 FIRE Additional Functionality | |
// @version 0.3.1 | |
// @author double-beep | |
// @contributor Xnero | |
// @match https://chat.stackexchange.com/rooms/11540/charcoal-hq | |
// @resource whitelisted https://gist.githubusercontent.com/double-beep/db30adf42967187382d2d261bf0a2bc1/raw/whitelisted_domains.txt | |
// @resource redirectors https://gist.githubusercontent.com/double-beep/ef22d986621ade6cacadae604f20ee59/raw/redirectors.txt | |
// @grant GM_xmlhttpRequest | |
// @grant GM_addStyle |
NewerOlder