Skip to content

Instantly share code, notes, and snippets.

View PaeP3nguin's full-sized avatar

PaeP3nguin

  • United States
View GitHub Profile
@PaeP3nguin
PaeP3nguin / sim.py
Last active August 31, 2020 19:52
Honkai Impact 3 gacha simulator. Implements expansion equipment, focus, and schicksal arsenal supply
import random
import statistics
from collections import Counter
from dataclasses import dataclass
from enum import Enum
from multiprocessing import Pool
from typing import Dict, List
from tqdm import tqdm
@PaeP3nguin
PaeP3nguin / heart.py
Created February 14, 2018 08:14
Valentine's Day Code Golf
# ██╗ ██╗ █████╗ ██╗ ███████╗███╗ ██╗████████╗██╗███╗ ██╗███████╗ ██╗ ███████╗
# ██║ ██║██╔══██╗██║ ██╔════╝████╗ ██║╚══██╔══╝██║████╗ ██║██╔════╝ ██║ ██╔════╝
# ██║ ██║███████║██║ █████╗ ██╔██╗ ██║ ██║ ██║██╔██╗ ██║█████╗ ╚═╝ ███████╗
# ╚██╗ ██╔╝██╔══██║██║ ██╔══╝ ██║╚██╗██║ ██║ ██║██║╚██╗██║██╔══╝ ╚════██║
# ╚████╔╝ ██║ ██║███████╗███████╗██║ ╚████║ ██║ ██║██║ ╚████║███████╗ ███████║
# ╚═══╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚══════╝
# ██████╗ ██████╗ ██████╗ ███████╗ ██████╗ ██████╗ ██╗ ███████╗
# ██╔════╝██╔═══██╗██╔══██╗██╔════╝ ██╔════╝ ██╔═══██╗██║ ██╔════╝
# ██║ ██║ ██║██║ ██║█████╗ ██║ ███╗██║ ██║██║ █████╗
@PaeP3nguin
PaeP3nguin / isupme_chrome.js
Last active April 22, 2017 19:38
Bookmarklet to check if page is down for everyone or just you
javascript:window.open('http://isup.me/'+loadTimeData.data_.summary.failedUrl)
@PaeP3nguin
PaeP3nguin / InsetFrameLayout.java
Created April 3, 2017 02:07
FrameLayout that saves and dispatches window insets to all new children
package yours.here;
import android.content.Context;
import android.os.Build;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v4.view.OnApplyWindowInsetsListener;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.WindowInsetsCompat;
import android.util.AttributeSet;
@PaeP3nguin
PaeP3nguin / canvas_average_grade.js
Last active November 27, 2016 01:56
Script to find the average class grade for a class on Canvas. To use: copy and run in the Chrome console while on the "Grades" page
(() => {
$("tr.student_assignment.assignment_graded.editable").each(function() {
var mean = $(this).next().find("tbody td").first().text().replace("Mean:","");
$(this).find(".what_if_score").text(mean);
$(this).find(".assignment_score .tooltip").trigger("score_change");
});
})()