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
| # Say a quote every hour on the half hour. | |
| 30 * * * * /path/to/quotes.sh |
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
| #!/usr/bin/env bash | |
| # | |
| # Shortcut to checkout a feature branch from a ticket number. | |
| KEY=-1 | |
| SEARCH=$1 | |
| # Require a parameter. | |
| if [[ -z "$SEARCH" ]]; then | |
| echo "What are you searching for?" |
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
| <?php | |
| /** | |
| * Implements hook_query_TAG_alter(). | |
| * | |
| * Add the tag 'debug' to any EFQ and this will print the query to the messages. | |
| * | |
| * @param \QueryAlterableInterface $query | |
| */ | |
| function MYMODULE_query_debug_alter(QueryAlterableInterface $query) { |
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
| /** | |
| * ============================================================================ | |
| * SQUARESPACE DATE FORMATTER | |
| * ============================================================================ | |
| * Reformats date strings in Squarespace with custom styling and semantic HTML | |
| * | |
| * This script finds date elements on your Squarespace site, parses their text | |
| * content, and replaces them with a custom format. Each date component (day, | |
| * month, year, weekday) gets wrapped in a span with a semantic class name | |
| * for easy CSS targeting. |
OlderNewer