Skip to content

Instantly share code, notes, and snippets.

View maxint137's full-sized avatar
💭
back to life?

Max Levy maxint137

💭
back to life?
View GitHub Profile
@maxint137
maxint137 / board_flip.js
Last active April 8, 2025 14:21
assist with chess studying
// ==UserScript==
// @name Flip the board
// @namespace http://tampermonkey.net/
// @version 2024-04-06
// @description try to take over the world!
// @author You
// @match https://www.chess.com/game/live/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=chess.com
// @grant none
// ==/UserScript==
@maxint137
maxint137 / Manage your Z会 assignments in Trello
Last active April 6, 2025 13:06
manage your Z会 assignments in Trello
A TS script to generate the tasks for my sons
@maxint137
maxint137 / no-glasspane.js
Created October 27, 2024 01:00 — forked from maxlevy-rakuten/no-glasspane.js
break the glasspane
(function () {
"use strict";
setInterval(() => {
const nagscreen = document.getElementById("nagscreen");
if (nagscreen) {
nagscreen.remove();
}
document
Extract the pure data from https://www3.zkai.co.jp/ to render it graphically

Keybase proof

I hereby claim:

  • I am maxint137 on github.
  • I am maxint (https://keybase.io/maxint) on keybase.
  • I have a public key ASC4gOOftZ_d6AMV-1X-sqV-_yM59KGLaFlvAo5Q3KhYVAo

To claim this, I am signing this object:

@maxint137
maxint137 / Tarjan.cs
Created July 20, 2017 05:06
Tarjan's strongly connected components algorithm
void Main()
{
int N = 8;
var nodes = new List<Node>(N + 1);
foreach (var n in Enumerable.Range(0, N + 1))
{
nodes.Add(new Node($"n{n}", null));
}
nodes[1].setNodes(new Node[] { nodes[2] });
@maxint137
maxint137 / graphCycles.cs
Last active July 20, 2017 05:52
Find a cycle of a given length in a graph
void Main()
{
var n0 = new Node<string>("n0", null);
var n1 = new Node<string>("n1", null);
var n2 = new Node<string>("n2", null);
var n3 = new Node<string>("n3", null);
var n4 = new Node<string>("n4", null);
var n5 = new Node<string>("n5", null);
var n6 = new Node<string>("n6", null);
var n7 = new Node<string>("n7", null);
@maxint137
maxint137 / test.html
Last active June 20, 2017 07:40
learning SVG
<!DOCTYPE html>
<html>
<head>
<title>SVG in HTML</title>
<style>
body {
font-family: cursive;
}
circle {
class projecteuler018
{
void parseRawData()
{
istringstream iss{ rawdata };
string row;
int i{};
while(getline(iss, row, '\n'))
{
### Keybase proof
I hereby claim:
* I am maxint137 on github.
* I am maxint (https://keybase.io/maxint) on keybase.
* I have a public key ASCrzuZRguTE-KNFEFGqp0M6RGR8pYeTYmHA2-wNrYd2nAo
To claim this, I am signing this object: