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 CircleGame.java
package net.mathoverflow.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
// https://mathoverflow.net/q/298443/70594
public class CircleGame {
View bill.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View off-topic.js
function check(i) {
if (i < 317093) return;
var questionID = i.toString();
$.get("https://meta.stackexchange.com/q/" + questionID, function(data) {
var question = $(data).find("#question");
if (question.attr("data-questionid") == questionID) {
console.log(questionID + "," + question.hasClass("deleted-answer") + ","
+ question.find("div.user-action-time:contains(asked)").find("span.relativetime").attr("title"));
}
setTimeout(function() { check(i - 1); }, 1000);
View packing-106.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Glorfindel83
Glorfindel83 / inbox.js
Created Dec 4, 2018
Search global inbox for notification types
View inbox.js
let lastPageURL = $("#inbox-pager a:nth-last-child(2)").attr("href");
let lastPage = parseInt(lastPageURL.substring(lastPageURL.indexOf("&page=") + 6));
let baseURL = lastPageURL.substring(0, lastPageURL.indexOf("&page=") + 6);
var itemTypes = {};
function fetchPage(page) {
if (page > lastPage) {
console.log(itemTypes);
return;
}
console.log(baseURL + page);
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 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 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 Broken UserVoice link repairer output
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();
You can’t perform that action at this time.