Skip to content

Instantly share code, notes, and snippets.

@dragonhuntr
dragonhuntr / EN01_howto.md
Created January 19, 2018 12:16 — forked from drkw1git/EN01_howto.md
How to setup Koto

What is Koto

Overview

Title Detail
Name Koto
Unit koto
Algorithm yescrypt (GlobalBoost-Y)
Default rpc port 8432
@dragonhuntr
dragonhuntr / AutoSolver.js
Created August 5, 2020 01:22
exclusive for my homies only
if (window.location.href.search("quizizz.com/join/game/") == -1 && window.location.href.search("gameType=") == -1) {
if (window.location.href.search("quizizz.com/join/pre-game/") != -1) {
alert("You cannot execute this while paused.")
throw new Error("You cannot execute this while paused.");
} else if (window.location.href.search("quizizz.com/join/quiz/") != -1) {
alert("You need to start the game before running this script.")
throw new Error("You need to start the game before running this script. ");
} else {
alert("You aren't on a quizizz quiz.")
throw new Error("You aren't on a quizizz quiz.");
//add ?akamai=0 behind your requests
//video for indepth guide on why it works: https://youtu.be/ub82Xb1C8os
const axios = require('axios')
axios({
method: 'POST',
url: 'https://unite.nike.com/login?akamai=0',
data: '{"username":"[email protected]","password":"123"}'
})
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@dragonhuntr
dragonhuntr / chrome pause before redirect.txt
Created April 6, 2022 08:23
chrome pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import java.util.Stack;
public class Calculator implements ActionListener {
private static JTextField inputBox;
originals
736x
564x
474x
237x
236x
170x
# OOP
## Class Definition
```python
class ClassName:
def __init__(self): # Constructor (like JS `constructor`)
self.attribute = value # Instance variable
def method_name(self): # Method (uses `self` like `this` in JS)
# File operations
## Open file
```python
with open('mytext.txt', 'r', encoding='utf-8') as f:
content = f.read()
```
## Example
@dragonhuntr
dragonhuntr / ColorDrawing.java
Created September 17, 2025 13:21
ColorDrawing
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Graphics;
import java.awt.BorderLayout;
public class ColorDrawing extends JFrame {
private int n;
private int p;
JPanel canvas = new JPanel();