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
| def NRIC_code(NRIC_no_code): | |
| weight = (2,7,6,5,4,3,2) #()this is tuple and cannot be modified | |
| alpha_singaporean = ('J','Z','I','H','G','F','E','D','C','B','A') | |
| alpha_foreigner= ('X','W','U','T','R','Q','P','N','M','L','K') | |
| total_sum = 0 | |
| for i in range (len(weight)): | |
| current_product = weight[i] * int(NRIC_no_code[i+1]) | |
| total_sum += current_product | |
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 json | |
| import re | |
| # you need to find the script nonce that contains channel ID, then copy and save the whole element into "youtube js.txt" | |
| def parse_subscriber_count(count_text): | |
| """ | |
| Parses strings like '1.05M subscribers' or '45K subscribers' into integers. | |
| """ | |
| if not count_text: |
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 pytesseract | |
| import os | |
| import sys | |
| pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract' | |
| directory =input('Where to find text from?\n') | |
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
| /** | |
| * Automate setting YouTube Subscription Notifications to "None" | |
| * TARGETS: | |
| * Button: ytd-subscription-notification-toggle-button-renderer-next | |
| * Menu Item: ytd-menu-service-item-renderer containing "None" | |
| */ | |
| (async function setNotificationsToNone() { | |
| console.log("--- STARTING FINAL SCRIPT ---"); | |
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 os | |
| import datetime | |
| from datetime import datetime | |
| import smtplib, ssl | |
| from email import encoders | |
| from email.mime.text import MIMEText | |
| from email.mime.base import MIMEBase | |
| from email.mime.multipart import MIMEMultipart | |
| try: |
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
| /// to start: | |
| var original = Runner.prototype.gameOver | |
| Runner.prototype.gameOver = function(){} | |
| /// to stop: | |
| Runner.prototype.gameOver = original | |
| /// to set speed: | |
| Runner.instance_.setSpeed(1000) |
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 zipfile | |
| charlist = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' #ALPHANUMERICAL ONLY (CAN ADD MORE) | |
| complete = [] | |
| for current in range(4): #MAX PASSWORD LENGTH = 4 | |
| a = [i for i in charlist] | |
| for x in range(current): | |
| a = [y + i for i in charlist for y in a] | |
| complete = complete + a |