-
getAllLinks.js
-
getAllLinks(element) - returns array of all UrlLinks in Document
-
findAndReplaceLinks(searchPattern,replacement) - changes all matching links in Document
-
changeCase.js - Document add-in, provides case-change operations in the add-in Menu.
-
onOpen - installs "Change Case" menu
-
_changeCase - worker function to locate selected text and change text case. Case conversion is managed via callback to a function that accepts a string as a parameter and returns the converted string.
-
helper functions for five cases
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
namespace :deploy do | |
# Ask whether to reindex before restarting Passenger | |
task :restart, :roles => :app, :except => {:no_release => true} do | |
solr.reindex if 'y' == Capistrano::CLI.ui.ask("\n\n Should I reindex all models? (anything but y will cancel)") | |
run "touch #{File.join(current_path, 'tmp', 'restart.txt')}" | |
end | |
desc 'create shared data and pid dirs for Solr' | |
task :setup_solr_shared_dirs do | |
# conf dir is not shared as different versions need different configs |
Copy this gist and customise it to your liking.
- Run Brakeman and resolve any issues where required
- Run rails best practices and resolve any warnings
- Run full test suite and make sure all tests are passing
- Make sure no dummy email addresses are left in any notification emails (eg contact form)
- Make sure production assets compile correct (eg files in vendor, etc, compile and are not 404'ing in production environment)
- If using unicorn in production, make sure deploys are restarting the unicorns
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
curl -L https://goo.gl/0Jxf8j -o /usr/local/bin/ntab | |
chmod +x /usr/local/bin/ntab |
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
// default exports | |
export default 42; | |
export default {}; | |
export default []; | |
export default foo; | |
export default function () {} | |
export default class {} | |
export default function foo () {} | |
export default class foo {} |
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
#!/bin/bash | |
function test { | |
MESSAGE=$1 | |
RECEIVED=$2 | |
EXPECTED=$3 | |
if [ "$RECEIVED" = "$EXPECTED" ]; then | |
echo -e "\033[32m✔︎ Tested $MESSAGE" | |
else |
OlderNewer