208.67.222.222
208.67.220.220
2620:0:ccc::2
2620:0:ccd::2
| on run argv | |
| if class of argv is list then | |
| try | |
| set dir to first item of argv | |
| on error | |
| -- If no command-line argument, do not change directory. | |
| set dir to "" | |
| end try | |
| else | |
| -- For testing in Apple Script Editor |
| on run argv | |
| if class of argv is list then | |
| try | |
| set dir to first item of argv | |
| on error | |
| -- If no command-line arguments, do not change directory. | |
| set dir to "" | |
| end try | |
| else | |
| -- For testing in Apple Script Editor. |
| // macOS 10.12 deprecates a bunch of constants. | |
| // These #defines allow older OS X versions to use the new MacOS constant names. | |
| #if !defined (NS_IMPL_COCOA) || \ | |
| MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 | |
| #define NSEventModifierFlagCommand NSCommandKeyMask | |
| #define NSEventModifierFlagControl NSControlKeyMask | |
| #define NSEventModifierFlagHelp NSHelpKeyMask | |
| #define NSEventModifierFlagNumericPad NSNumericPadKeyMask | |
| #define NSEventModifierFlagOption NSAlternateKeyMask | |
| #define NSEventModifierFlagShift NSShiftKeyMask |
| import std.datetime : PosixTimeZone, Clock; | |
| import std.stdio : writeln, stdout; | |
| void main() { | |
| auto tznames = PosixTimeZone.getInstalledTZNames(); | |
| foreach (tzname; tznames) { | |
| stdout.writeln(tzname); | |
| } | |
| auto now = Clock.currTime(); | |
| stdout.writeln(now); |
| Spam callers who called my line: | |
| 3027211249 (2021-01-19) | |
| 9805538760 (2020-08-10) | |
| 2622173766 (2020-08-04) | |
| 9045526717 (2020-06-30) | |
| 4077453249 | |
| 5105134125 | |
| 5183501038 |
| # http://superuser.com/questions/290656/combine-multiple-images-using-imagemagick | |
| # Combine vertically | |
| gm convert -quality 100 -append a.jpg b.jpg c.jpg out.jpg | |
| # Combine horizontally | |
| gm convert -quality 100 +append a.jpg b.jpg c.jpg out.jpg |