Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| -- allSettings is a list of records containing {width:? height:? apps:{{name:? pos:? size:?},...} | |
| -- for each display setup store the apps and their associated position and size | |
| property allSettings : {} | |
| -- create a variable for the current settings | |
| set currentSettings to {} | |
| display dialog "Restore or save window settings?" buttons {"Restore", "Save"} default button "Restore" | |
| set dialogResult to result |
| ------------------------------------------------------------------------------------------- | |
| # Auth: Shane Stanley & Christopher Stone | |
| # dCre: 2014/01/19 09:46 +1100 | |
| # dMod: 2016/02/24 15:18 -0600 | |
| # Appl: AppleScriptObjC | |
| # Task: Create a date-string using ICU Date-Time Format Syntax | |
| # : http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax | |
| # Libs: None | |
| # Osax: None | |
| # Tags: @Applescript, @Script, @AppleScriptObjC, @ASObjC, @Shane, @Date, @String |
| #!/bin/sh | |
| #check to see if arguments are set | |
| E_BADARGS=65 | |
| if [ ! -n "$1" ] | |
| then | |
| echo "Usage: `basename $0` textfilename [rtffilename optional]" | |
| exit $E_BADARGS | |
| fi |
| -- Copyright (C) 2012 Robin Trew | |
| -- | |
| -- Permission is hereby granted, free of charge, | |
| -- to any person obtaining a copy of this software | |
| -- and associated documentation files (the "Software"), | |
| -- to deal in the Software without restriction, | |
| -- including without limitation the rights to use, copy, | |
| -- modify, merge, publish, distribute, sublicense, | |
| -- and/or sell copies of the Software, and to permit persons | |
| -- to whom the Software is furnished to do so, |
| // Ver 0.4 Rob Trew | |
| // Library for using OSX Yosemite Script Editor scripts | |
| // written in an idiom compatible with FoldingText, Drafts, 1Writer, TextWell | |
| // In iOS Drafts 4 scripts, the header is simply: | |
| // var drafts = this; | |
| // For headers for FoldingText and other editors, see: | |
| // See: http://support.foldingtext.com/t/writing-scripts-which-run-on-both-foldingtext-and-ios-drafts-4/652/7 | |
| // Call functions, after this header, with the prefix: | |
| // drafts. |
| // ROBIN TREW 2015 MIT License | |
| // OSX 10.10 SCRIPT EDITOR – TOGGLE COMMENTS | |
| // Add remove '// ' from before printing characters | |
| // Depends on a library .scpt being saved at ~/Library/Script Libraries/DraftsSE.scpt | |
| // See: See: http://support.foldingtext.com/t/writing-scripts-which-run-on-both-foldingtext-and-ios-drafts-4/652/7 | |
| // INCLUDE LIBRARY OF IOS DRAFTS-COMPATIBLE EDITOR FUNCTIONS: |