๐
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
| body { | |
| font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
| font-weight: 300; | |
| } |
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
| /* Modern Font Stacks */ | |
| /* System */ | |
| font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif; | |
| /* System (Bootstrap 5.2.0) */ | |
| font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | |
| /* Times New Roman-based serif */ | |
| font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; |
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
| ### Points and Display Type | |
| PPI is points per inch below, not pixels per inch. Not all models are listed, just the first model with a new display size. Diamond, RGB Stripe and Pentile RGB refer to the subpixel patterns. | |
| iPhone 1 = 320 ร 480 @ 163PPI sRGB IPS LCD RGB Stripe | |
| iPhone 4 = 320 ร 480 @ 163PPI sRGB IPS LCD RGB Stripe | |
| iPhone 5 = 320 ร 568 @ 163PPI sRGB IPS LCD RGB Stripe | |
| iPhone 6 = 375 ร 667 @ 163PPI sRGB IPS LCD RGB Stripe | |
| iPhone 6 Plus = 414 ร 736 @ 153.5PPI sRGB IPS LCD RGB Stripe | |
| iPhone 7 = 375 ร 667 @ 163PPI P3 IPS LCD RGB Stripe |
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
| /* via "Modern Font Stacks" (https://github.com/system-fonts/modern-font-stacks) */ | |
| font-family: system-ui, sans-serif; | |
| /* via "System Font Stack" (https://css-tricks.com/snippets/css/system-font-stack/) */ | |
| font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
| /* via "Operating systems default sans-serif fonts" (https://fontsarena.com/blog/operating-systems-default-sans-serif-fonts) */ | |
| font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif; | |
| /* System Fonts as used by GitHub */ |
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
| # LIST NODE INPUTS/OUTPUTS | |
| import bpy | |
| selNode = bpy.data.materials["Material"].node_tree.nodes["Principled BSDF"] | |
| for i, o in enumerate(selNode.inputs): | |
| print(i, o.name) | |
| for i, o in enumerate(selNode.outputs): |
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
| // Get screen width and subtract Safe Area margins | |
| var containerWidth:CGFloat = UIScreen.main.bounds.width - 32.0 | |
| // Set frame width of each column using (containerWidth * percentage) | |
| HStack (spacing:0) { | |
| HStack { | |
| Text("Column 25% Width") | |
| } | |
| .frame(width: containerWidth * 0.25) | |
| HStack { |
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 bpy | |
| from math import sqrt | |
| phi = (1 + sqrt(5)) / 2 | |
| # phi = 5 ** .5 * .5 + .5 | |
| # ASCENDING | |
| e1 = [round((x * phi),3) for x in range(1,17)] | |
| print(f"\nAscending = {e1}") |
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
| # 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 |
NewerOlder