Skip to content

Instantly share code, notes, and snippets.

View luap42's full-sized avatar

luap42 luap42

View GitHub Profile
@luap42
luap42 / seating_protocol.txt
Last active June 30, 2022 17:50
Detaillierte Sainte-Laguë/Schepers Auswertung zur StuPa-Wahl 2022 (CC BY-SA; Urheber: luap42)
Seat order:
----------
Seat #1 goes to
GHG
with rank 1718.0
Seat #2 goes to
UP.rising
with rank 1604.0
@luap42
luap42 / leaderboard
Last active June 21, 2021 20:13 — forked from MoshiKoi/leaderboard
Leaderboard by Moshi, improved by luap
// ==UserScript==
// @name Codidact - Codegolf Leaderboards - ToC Edition
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Addes a leaderboard to code golf challenges
// @author Moshi
// @match https://codegolf.codidact.com/posts/*
// @icon https://www.google.com/s2/favicons?domain=codidact.com
// @grant none
// @run-at document-end
@luap42
luap42 / fngm-hotfix.js
Last active December 15, 2021 12:20
Flappy Codidactyl JS
function ee() {
style = document.createElement("style");
style.innerText = ".fngm-ee { background-color: #000a; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; } .fngm-cv { background-color: white; margin: 3rem; height: calc(100% - 6rem); width: calc(100% - 6rem); }";
document.body.appendChild(style);
eee = document.createElement("div");
eee.classList.add('fngm-ee');
eee.innerHTML = "<canvas class=\"fngm-cv\" height=1000 width=600></canvas>";
document.body.appendChild(eee);
@luap42
luap42 / CD-TLC-Transcript-2020-03-15
Last active March 16, 2020 16:40
Transcript of a Discord conversation
cellio Yesterday at 19:05
@Marc Ranolfi it looks like there hasn't been activity in the core repo in a month+. Are people blocked on something, distracted by QPixel, drifting away, something else?
luap42 Yesterday at 19:10
@cellio the last update in PRs was 5 days ago. I guess that there are the following issues: (a) People knowing the system well moved away (not enough time, other things to do, SE became somehow better/more hopeful) and (b) People knowing the software not so well waited for "(more) easy" tasks to do, which haven't started so far, because of (a) and other delays, which could have been expected with such a community project, resulting in the hard tasks not being done.
As an example: I consider "supporting multiple communities" (including the plan) a hard task, whereas "display of questions" an easier one.
cellio Yesterday at 19:23
Oh I forgot to look at PRs -- thanks for that clue! Good, not stalled for weeks like it appeared from commits.
@luap42
luap42 / faq.md
Created January 8, 2020 21:06 — forked from ArtOfCode-/faq.md

Frequently Asked Questions

  • Why is this necessary?
    This project was started by a group of Stack Exchange users who were (and are) dissatisfied with the way Stack Exchange is running things, on a number of counts. Essentially, we believe that the goals of a community-oriented product and a for-profit company are fundamentally at odds. The aim of Codidact is to be that truly community-oriented product.

  • How can I get involved?
    See above for links to various communication channels we use. We suggest joining both our forum (for structured

@luap42
luap42 / randomstring.py
Last active January 8, 2018 15:46
Generates a random string from the input using its length
import random, string
"""
def random_string
:param: old_text[str]
:return: [str]
"""
def random_string(old_text):
return "".join([random.choice(string.printable) for _ in range(len(old_text))])