Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed diam nonnumy ciusmod tempor incidunt ut labore et dolore magna aliquam crat voluptat. Ut enim ad minim veniam, quis nostrud exercitation ullamcorpor suscipit laborios nisi ut aliquip ex ea commodo consequat. Duis autem vel eum irure repreenderit in voluptate velit esse nihil molestiae consequat, vel illum dolore eu fugiat nulla pariatur. At vero cos et accusam et justo odio dignissim ducim qui blandit praesent luptatum delenit atgue duos dolor et molestias exceptur sint occaccat cupiditat non provident, simil sunt in culpa qui officia deserunt mollit anim id est laborum et dolor fuga. Et harumd dererud facilis est er expedit distinct. Nam liber tempor cum soluta nobis est eligend optio comgue nihil impedit doming id quod maxim placeat face
๐
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
| <style> | |
| // Define your variables at the root level in CSS | |
| // This can be in a separate CSS file, that works fine too | |
| :root { | |
| --color_primary: #ff0000; | |
| } | |
| </style> | |
| <script> | |
| // This function gets a CSS variable from the root document element |
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
| # Rename Files v1.1.0 | |
| # Imports a mappings file in this format: | |
| # current_name1,new_name1 | |
| # current_name2,new_name2 | |
| # ... | |
| # and renames files in a MacOS directory. | |
| import os | |
| import shlex | |
| # Ask for directory path and use shlex to sanitize the path |
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
| phi = 5**0.5*0.5+0.5 | |
| formatted_phi = f"{phi:.50f}" | |
| print(formatted_phi) | |
| # 1.61803398874989490252573887119069695472717285156250 |
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
| # Extract Metadata v1.3.0 | |
| # This script reads the images in a directory and all subdirectories, copies the EXIF metadata, and saves it to a text file with the same name as the source image. | |
| import os | |
| import shlex | |
| from PIL import Image, ExifTags | |
| # Ask the user for the parent directory path and strip trailing whitespace | |
| PARENT_DIRECTORY_input = input("Enter the parent directory path: ").strip() | |
| # Use shlex to sanitize the path |
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
| # Zip File v2.0.0 | |
| # Usage: python zip_file.py | |
| import os | |
| import shlex | |
| import sys | |
| import zipfile | |
| from pathlib import Path, PurePosixPath | |
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
| # Read File Path v1.0 | |
| # Dreg-and-Dropping into terminal a file with spaces in its name (User/Folder/File\ Name.txt) can cause errors. | |
| # This script makes sure file paths are readable by Python | |
| import shlex | |
| # Ask the user for a file path | |
| file_path_input = input("Enter the path to the target file: ").strip() | |
| file_path_components = shlex.split(file_path_input) | |
| # Reconstruct the file path by joining the components |
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
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
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
| APPLE DEVICE DISPLAY REFERENCE | |
| Revised: October 23, 2026 | |
| Device Screenshot Size Point Density Device Resolution Pixel Density Scale Gamut Display Subpixel Layout | |
| (pt) (pt/in) (px) (PPI) | |
| iPhone 18 Pro Max 440 ร 956 153 1320 ร 2868 460 3ร P3 OLED Diamond | |
| iPhone 18 Pro 402 ร 874 153 1206 ร 2622 460 3ร P3 OLED Diamond | |
| iPhone Duo Inner 626 ร 890 143 1878 ร 2670 430 3ร P3 OLED Diamond | |
| iPhone Duo Outer 466 ร 678 153 1398 ร 2034 460 3ร P3 OLED Diamond |
NewerOlder