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
Moved to https://github.com/mparker17/drupal-settings_local_snippets |
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
// Useful SCSS mixins. | |
// Apply styles to all header elements at once. | |
@mixin headers-all { | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { |
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
// | |
// Display a high-DPI sprite. | |
// | |
// @param $normal_image compass::sassextensions::sprites::spritemap | |
// The normal-DPI sprite map. Will be used as a fallback. | |
// @param $highdpi_image compass::sassextensions::sprites::spritemap | |
// The High DPI sprite map. | |
// @param $which_sprite Sass::Script::Value::String | |
// The individual sprite to display. | |
// @param $background_color Sass::Script::Value::Color |
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 | |
# | |
# POSIX permissions for a folder need to include the execute bit so you can list | |
# their contents. But you don't want the execute flag on files, otherwise | |
# someone could try to run them like a program. | |
# | |
# For this reason, | |
# | |
# chmod -R $some_mode $path_to_folder | |
# |
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
Moved to https://github.com/mparker17/fish-config |
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
2.3.1 |
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
BEFORE a branch has been merged in, you can: | |
* list all commits that make up that branch with: | |
git log | |
* list all commits in that branch, excluding commits merged in, with: | |
git log master..feature2a | |
git log master..feature2a --first-parent | |
* list all commits in that branch, excluding commits merged in AND merge commits with: | |
git log master..feature2a --first-parent --no-merges | |
AFTER a branch has been merged in, you can list only the commits specific to that branch with: |
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
# | |
# Minimal Drupal 7.x development environment. | |
# | |
# Use: | |
# 1. Place a copy of this file at your Drupal site root. | |
# 2. Start the web stack: `USER_ID=$(id -u) docker-compose up -d` | |
# 3. Set up `settings.local.php` (note that the host is 'db' and the username, | |
# password, and schema are in the environment variables for the database | |
# container below). | |
# 4. If you have a database dump to import, place it in your Drupal site root, |
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
<?php | |
/** | |
* Generates a random date. | |
* | |
* Essentially generates a random, positive integer and interprets it as a | |
* number of seconds from the start of the UNIX epoch (i.e.: 1970-01-01 00:00:00 | |
* UTC). | |
* | |
* This function checks $min and $max: if you try to pass $min < 0, the function | |
* will use 0 as the minimum; likewise, if you pass $max > getrandmax(), the |
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
Bold: | |
Find: \*\*([\P{C}]+?)\*\* | |
Replace: *$1* | |
Italics: | |
Find: \*([\P{C}]+?)\* | |
Replace: _$1_ | |
Monospace: | |
Find: `([\P{C}]+?)` |