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
| tell application "Reminders" | |
| set todo_accounts to every account | |
| -- accounts have lists. loop thru accounts to get their lists. | |
| repeat with i from 1 to length of todo_accounts | |
| tell account i | |
| set todo_lists to get every list | |
| -- lists have reminders. loop thru lists to get their reminders | |
| repeat with j from 1 to length of todo_lists | |
| tell list j | |
| set todos to (get reminders) |
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
| --Script for setting Reminders for LaunchBar and Alfred | |
| --For Alfred, Applescript must NOT be set to run in Background otherwise date parsing does not work | |
| --For LaunchBar, place the script in ~/Library/Scripts/LaunchBar | |
| --by Michelle L. Gill, 10/07/2012 | |
| --Inspired by https://gist.github.com/3187630 | |
| --A related Alfred version 2 workflow can be found here: https://github.com/mlgill/alfred-workflow-create-reminder | |
| --Changes | |
| --02/01/2013 * Fixed an issue with setting the time when the hour is 12 and AM/PM (12-hour clock) is used | |
| -- * Removed the ability to set seconds for the time since Reminders doesn't recognize them |
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
| #!/bin/bash | |
| function remove_dir () { | |
| rm -rf "$1_" | |
| if [ -d "$1" ] | |
| then | |
| mv "$1" "$1_" | |
| fi | |
| } |
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
| # Banner-style (default) | |
| from Foundation import NSUserNotification, NSUserNotificationCenter | |
| def notify(title, subtitle, text): | |
| notification = NSUserNotification.alloc().init() | |
| notification.setTitle_(str(title)) | |
| notification.setSubtitle_(str(subtitle)) | |
| notification.setInformativeText_(str(text)) | |
| notification.setSoundName_("NSUserNotificationDefaultSoundName") | |
| NSUserNotificationCenter.defaultUserNotificationCenter().scheduleNotification_(notification) |
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
| from pygments.lexer import RegexLexer, bygroups, include, using | |
| from pygments.lexers.data import JsonLexer | |
| from pygments.token import * | |
| __all__ = ['CalvinLexer'] | |
| class CalvinLexer(RegexLexer): | |
| name = 'CalvinScript' | |
| aliases = ['Calvinscript', 'calvinscript'] | |
| filenames = ['*.calvin'] |
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
| # TextMate tutorial: http://manual.macromates.com/en/language_grammars | |
| # Regex to convert keys to unquoted: '(include|match|captures|begin|end|beginCaptures|endCaptures|name|patterns|0|1|2|3|4|5|6|7|8|9|comment|fileTypes|scopeName|repository|contentName|firstLineMatch|foldingStartMarker|foldingStopMarker)': | |
| scopeName: 'source.<scope>' # <scope> should be a short, unique indicator for the language ("js", "php", "c", etc.) | |
| name: '<name>' # The title that will show up in grammar selection and on your status bar. | |
| fileTypes: [ # An array of file extensions. | |
| 'txt' | |
| 'exif' | |
| ] |
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
| /** | |
| * MacEditorTextView | |
| * Copyright (c) Thiago Holanda 2020-2021 | |
| * https://bsky.app/profile/tholanda.com | |
| * | |
| * (the twitter account is now deleted, please, do not try to reach me there) | |
| * https://twitter.com/tholanda | |
| * | |
| * MIT license | |
| */ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.