Skip to content

Instantly share code, notes, and snippets.

Glorfindel83

Block or report user

Report or block Glorfindel83

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 results.txt
OpenSTV version 1.7 (http://www.OpenSTV.org/)
Suggested donation for using OpenSTV for an election is $50. Please go to
http://www.OpenSTV.org/donate to donate via PayPal, Google Checkout, or
Amazon Payments.
Certified election reports are also available. Please go to
http://www.openstv.org/certified-reports for more information.
Loading ballots from file chess-stackexchange-com-2019-election-results.blt.
View KnightsTour.java
package net.mathoverflow;
import java.util.HashMap;
import java.util.Map;
public class KnightsTour {
private static final int SIZE = 5; // odd number >= 5
private static final int MAX_WINDINGS = 4, UNIT = 16, HALF_BOARD_SIZE = (MAX_WINDINGS + 1) * SIZE - 1;
private static final java.awt.Point center = new java.awt.Point(UNIT * HALF_BOARD_SIZE, UNIT * HALF_BOARD_SIZE);
View KnightsTour3Picture.java
package net.mathoverflow;
import java.awt.Point;
// See https://mathoverflow.net/a/332788/70594
public class KnightsTour3Picture {
public static void main(String[] args) throws Exception {
System.out.println("<!DOCTYPE html>");
System.out.println("<html>");
System.out.println("<body>");
View vandalism.md

Comment

Please don't make more work for other people by vandalizing your posts. By posting on the Stack Exchange (SE) network, you've granted a non-revocable right, under the CC BY-SA 3.0 license for SE to distribute that content. By SE policy, any vandalism will be reverted. If you want to know more about deleting a post, consider taking a look at: How does deleting work?


Edit summary

don't vandalize your post please - restored to previous version

View Statistics.java
package com.stackexchange.rpg;
import java.util.Random;
public class Statistics {
public static void main(String[] args) {
long total = 0, samples = 0;
while (true) {
samples++;
total += sample();
View Broken UserVoice link repairer output
View Cross-site investigator (Survey 2019).csv
Site Banner? Census badge?
https://eosio.stackexchange.com false false
https://quantumcomputing.stackexchange.com false false
https://conlang.stackexchange.com false false
https://stellar.stackexchange.com false false
https://iota.stackexchange.com false false
https://augur.stackexchange.com false false
https://interpersonal.stackexchange.com false false
https://cseducators.stackexchange.com false false
https://bioinformatics.stackexchange.com false false
View Cross-site investigator (Survey 2019).user.js
// ==UserScript==
// @name Cross-site investigator
// @namespace https://github.com/Glorfindel83/
// @match https://stackexchange.com/sites
// @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js
// @connect *.stackexchange.com
// @connect *.stackoverflow.com
// @connect *.superuser.com
// @connect *.serverfault.com
// @connect *.askubuntu.com
View help.csv
https://eosio.stackexchange.com 0 Asking 0 dont-ask
https://eosio.stackexchange.com 0 Asking 1 closed-questions
https://eosio.stackexchange.com 0 Asking 2 on-topic
https://eosio.stackexchange.com 0 Asking 3 what-to-do-instead-of-deleting-question
https://eosio.stackexchange.com 0 Asking 4 deleted-questions
https://eosio.stackexchange.com 1 Our model 0 conduct
https://eosio.stackexchange.com 1 Our model 1 behavior
https://eosio.stackexchange.com 1 Our model 2 interesting-topics
https://eosio.stackexchange.com 1 Our model 3 promotion
https://eosio.stackexchange.com 1 Our model 4 roomba
View broken-image-repairer.md

Broken Image Repairer

What is the problem?

A long time ago, it was possible to inline images from all kinds of external sources. Since the switch from HTTP to HTTPS, this is no longer possible; only HTTPS sources are allowed. This leads to ugly blurbs like

alt text http://example.com/image.png

instead of a nicely formatted page with images. Sometimes, the links don't even work anymore, even with HTTPS images, which will show like this: ... Luckily, we have the Wayback Machine which is able to rescue some of the lost images. Since a picture often says more than a thousand words, it's important to bring back the post into its original state; important enough to justify the occasional bump of an old post (see below).

You can’t perform that action at this time.