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
# ----------------------------------------------------------------- | |
# .gitignore | |
# Bare Minimum Git | |
# https://salferrarello.com/starter-gitignore-file/ | |
# ver 20221125 | |
# | |
# From the root of your project run | |
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore | |
# to download this file | |
# |
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
set appName to "Google Chrome" | |
tell application appName to quit | |
repeat | |
tell application "System Events" | |
if appName is not in (name of application processes) then exit repeat | |
end tell | |
do shell script "sleep 0.5" | |
end repeat | |
tell application appName to launch |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
on run {input, parameters} | |
set input to (first item of input) | |
tell script "_string" to set input to trimBoth(input) | |
set lst to every paragraph of input | |
tell application "Reminders" | |
activate | |
set aList to (name of lists) | |
set theList to some list whose name is (first item of (choose from list aList)) |
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
;(function ($, window) { | |
var intervals = {}; | |
var removeListener = function(selector) { | |
if (intervals[selector]) { | |
window.clearInterval(intervals[selector]); | |
intervals[selector] = null; | |
} |
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
-- Ask the user to select an app | |
set theApp to choose file of type "app" default location (path to applications folder) | |
-- Get the app name | |
tell application "System Events" | |
set theAppName to name of theApp | |
if theAppName ends with ".app" then set theAppName to text 1 thru -5 of theAppName | |
-- Determine whether the app is a package, and notify the user if it's not | |
set isPackage to (package folder of theApp) |
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
bid() { | |
local shortname location | |
# combine all args as regex | |
# (and remove ".app" from the end if it exists due to autocomplete) | |
shortname=$(echo "${@%%.app}"|sed 's/ /.*/g') | |
# if the file is a full match in apps folder, roll with it | |
if [ -d "/Applications/$shortname.app" ]; then | |
location="/Applications/$shortname.app" | |
else # otherwise, start searching |
NewerOlder