| Title | Detail |
|---|---|
| Name | Koto |
| Unit | koto |
| Algorithm | yescrypt (GlobalBoost-Y) |
| Default rpc port | 8432 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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"}' | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| originals | |
| 736x | |
| 564x | |
| 474x | |
| 237x | |
| 236x | |
| 170x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # File operations | |
| ## Open file | |
| ```python | |
| with open('mytext.txt', 'r', encoding='utf-8') as f: | |
| content = f.read() | |
| ``` | |
| ## Example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(); |
OlderNewer