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 | |
// Add this to the bottom of color.inc. | |
// The color fields will differ on themes, so you'll need to make sure | |
// to update the field names for the colors. | |
// ie, brandprimary, brandsecondary, etc. | |
// Add Kuler colors | |
$kuler_json = theme_get_setting('kuler_json', variable_get('theme_default')); | |
$kuler_check = theme_get_setting('kuler_check', variable_get('theme_default')); |
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
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
parse_git_tag () { | |
git describe --tags 2> /dev/null | |
} | |
parse_git_branch_or_tag() { | |
local OUT="$(parse_git_branch)" |
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
server { | |
listen 8080 default_server; | |
listen [::]:8080 default_server ipv6only=on; | |
root /var/www/html/drupal; | |
index index.php index.html index.htm; | |
error_page 404 /404.html; | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { |
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
For example, Kyle Taylor (kt) | |
owner:kt AND state:accepted |
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
function directory_size () { | |
# Sum the number of bytes in a directory listing | |
size=$(ls -l | awk 'BEGIN {x=0} NR > 1 {x+=$5} END { | |
split("B KB MB GB TB PB",type); | |
if (x > 0) { | |
for(i=5;y < 1;i--) { | |
y = x / (2**(10*i)); | |
} | |
} | |
printf "%.2f %s", y, type[i+2] |
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
// ----------------------------------------- | |
// Bootstrap 2 related variables / functions | |
// ----------------------------------------- | |
@mobile: ~"(max-width: 767px)"; | |
@tablet: ~"(min-width: 768px) and (max-width: 979px)"; | |
@normal: ~"(min-width: 980px) and (max-width: 1199px)"; | |
@wide: ~"(min-width: 1200px)"; | |
@gridColumns: 12; | |
@gridColumnWidth: 60px; |
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
{% comment %} | |
We're splitting off the file extension in order to add "@2x" | |
if the image is retina ready, else use a regular image with "data-no-retina". | |
Image extension is assumed 3 characters. PNG, JPG, GIF (no JPEG). | |
{% endcomment %} | |
{% capture img_length %}{{ include.src | size | minus:4 }}{% endcapture%} | |
{% assign img_ext = include.src | slice: -4,4 %} | |
{% assign img_name = include.src | slice: 0,img_length %} |
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
[...document.querySelectorAll(".form-type-checkbox input.form-checkbox:not([disabled])")].forEach(checkbox => checkbox.checked=true); |
OlderNewer