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
| #!/usr/bin/env python3 | |
| """ | |
| PDF Compression Script - Using PyMuPDF to convert pages to JPG and rebuild | |
| Installation: | |
| pip install PyMuPDF Pillow | |
| Usage: | |
| python compress_pdf_final.py | |
| """ |
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
| """ | |
| Emoji OTP for astral projection - when letters/numbers become unreadable, emojis remain accessible | |
| https://claude.ai/share/d24abbf3-323b-4d03-8a5d-be613cff0286 | |
| Use Ctrl + '+' (plus) key to zoom in terminal | |
| """ | |
| import random | |
| import time |
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
| #!/usr/bin/env python3 | |
| """ | |
| BibTeX Journal Abbreviator | |
| This script reads a .bib file and replaces full journal names with their | |
| standard abbreviations based on IEEE, ACM, and other common abbreviations. | |
| """ | |
| import re | |
| import sys |
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 sympy import symbols, Implies, And, Not, simplify_logic, S | |
| from itertools import combinations | |
| from tqdm import tqdm | |
| # Define the function to count nodes | |
| def count_nodes(expr): | |
| """Recursively count all nodes in a SymPy expression.""" | |
| count = 1 | |
| if hasattr(expr, "args") and expr.args: |
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
| (async () => { | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| watchedVideoOverlays = Array.from(document.getElementsByClassName('ytd-thumbnail-overlay-resume-playback-renderer')) | |
| for(let i = 0; i < watchedVideoOverlays.length; i += 1){ | |
| console.log(i) | |
| 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
| /** | |
| USAGE | |
| 1. Open the playlist you want | |
| 2. Right click > Inspect element > Console | |
| 3. Copy this and paste. Hit enter. | |
| 4. For watch later make sure to click the Edit button | |
| EDIT: Not all playlists have hours. | |
| */ |
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
| # http://www-01.sil.org/linguistics/wordlists/english/wordlist/wordsEn.txt | |
| with open("./wordsEn.txt") as word_file: | |
| english_words = set(word.strip().lower() for word in word_file) | |
| matches = [] | |
| WORD_LEN = 4 | |
| for word in english_words: | |
| if len(word) == WORD_LEN: |
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
| var students = []; | |
| var rows = $("tr"); | |
| for(var i = 1; i < rows.length; i++){ | |
| students[i-1] = {}; | |
| var row = rows[i]; | |
| var name = (row.children[0].innerHTML+"").trim(); | |
| students[i-1]["name"] = name.replace(" ","").replace(/\s\s+/g,' '); | |
| var cgpa = (row.children[3].innerHTML+"").trim(); |
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
| ''' | |
| SqueezeNet v1.1 (https://github.com/DeepScale/SqueezeNet/tree/master/SqueezeNet_v1.1) | |
| Paper: https://arxiv.org/abs/1602.07360 | |
| TODO: Use Xavier initializer | |
| ''' | |
| import tensorflow as tf | |
| x = tf.placeholder(tf.float32,(None,28*28)) |
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
| /** | |
| USAGE | |
| 1. Open the playlist you want | |
| 2. Right click > Inspect element > Console | |
| 3. Copy this and paste. Hit enter. | |
| 4. For watch later make sure to click the Edit button | |
| Make sure &disable_polymer=true flag is set | |
| e.g. | |
| https://www.youtube.com/playlist?list=WL&disable_polymer=true |
NewerOlder