Skip to content

Instantly share code, notes, and snippets.

@ewjavi
ewjavi / findandreplace.applescript
Created June 14, 2018 23:12 — forked from kerim/findandreplace.applescript
AppleScript to find and replace text in file using TextWrangler
tell application "TextWrangler"
open theFile
replace "[FIND TEXT]" using "[REPLACE TEXT]" searching in text 1 of front document options {starting at top:false, wrap around:true, backwards:true, case sensitive:true, match words:true, extend selection:false}
replace "[FIND TEXT 2]" using "[REPLACE TEXT 2]" searching in text 1 of front document options {starting at top:false, wrap around:true, backwards:true, case sensitive:true, match words:true, extend selection:false}
tell front document
save
end tell
@ewjavi
ewjavi / template-snippets.txt
Created August 31, 2017 06:28 — forked from cod3cow/template-snippets.txt
Template Snippets for Joomla!
# all php files :: disallow direct access of file
# between <?php and ?>
defined('_JEXEC') or die;
# index.php :: define variable with application
# between <?php and ?>
$app = JFactory::getApplication();
# index.php :: define variable with document
# between <?php and ?>
@ewjavi
ewjavi / 0_reuse_code.js
Created August 19, 2017 02:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console