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 multi-line script with YAML syntax | |
name: Convert milliseconds to human-readable date | |
icon: square filled D | |
regex: ^\d+$ | |
javascript: | | |
const timestamp = parseInt(popclip.input.text); | |
popclip.showText(new Date(timestamp).toISOString()); |
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 |
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 |
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) | |
{ |
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 | |
{ | |
} |
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 | |
{ |