View Color Preview.yml
This file contains 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
# popclip abc | |
name: Color Preview | |
icon: square filled C | |
actions: | |
- title: RGB HEX | |
icon: square filled RGB | |
regex: ^#[0-9a-fA-F]{6}$ | |
applescript: tell application "Shortcuts Events" to run the shortcut named "Show color preview" with input "{popclip text}" | |
- title: RGBA HEX | |
icon: square filled RGBA |
View merge.sh
This file contains 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
exiftool -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-DateTimeOriginal<PhotoTakenTimeTimestamp" "-CreateDate<CreationTimeTimestamp" "-ModifyDate<PhotoLastModifiedTimeTimestamp" -ext "*" -overwrite_original -progress --ext json Google\ Photos |
View Foo.cs
This file contains 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
using System.Collections.Generic; | |
using System.Globalization; | |
using JetBrains.Annotations; | |
using UnityEngine; | |
public static class Foo | |
{ | |
[SourceTemplate] | |
public static void @for<T>(this int x, string i) | |
{ |
View ReadOnlyAttribute.cs
This file contains 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
using UnityEditor; | |
using UnityEngine; | |
public class ReadOnlyAttribute : PropertyAttribute | |
{ | |
} |
View FileExtensions.cs
This file contains 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
using System; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Reflection; | |
using Object = UnityEngine.Object; | |
[InitializeOnLoad] | |
public static class FileExtensions | |
{ |