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
// ==UserScript== | |
// @name MusicNerd Auto-Play, Button Selector, and Next | |
// @namespace http://tampermonkey.net/ | |
// @version 2.1 | |
// @description Auto-click play button, number-key-based select song, auto press next musicnerd.io | |
// @author archonic | |
// @match https://musicnerd.io/quiz/* | |
// @grant none | |
// ==/UserScript== |
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
# Type a number and hit enter for that number's look-and-say product. | |
# Press enter without entering a number to get the next step after the previous product. | |
def look_and_say(num): | |
prev_val = None | |
occurrence = 0 | |
new_seq = "" | |
for i in map(int, str(num)): | |
if i == prev_val: | |
occurrence += 1 | |
elif prev_val is None: |
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
from openpyxl import Workbook, load_workbook | |
from pathlib import Path | |
import csv | |
from openpyxl.utils import get_column_letter | |
downloads_path = str(Path.home() / "Downloads") | |
src_block_path = downloads_path + "/closed_3.xlsx" | |
src_cells_start = "N1" | |
src_cells_end = "X5" |
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.util.Arrays; | |
import java.util.Scanner; | |
public class ParseUtility { | |
static String[] asArray(String line){ | |
return line.split(" "); | |
} | |
static int[] asIntArray(String line){ | |
return asIntArray(asArray(line)); |