View product_generator.rb
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
#------------------------------------------------------------------------ | |
# encoding: utf-8 | |
# @(#)product_generator.rb 1.00 29-Nov-2011 16:38 | |
# | |
# Copyright (c) 2011 Jim Pravetz. All Rights Reserved. | |
# Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) | |
# | |
# Description: A generator that creates product, products and | |
# ingredients pages for jekyll sites. Uses a JSON data | |
# file as the database file from which to read and |
View find-unintended-body-overflow-css.js
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
var docWidth = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll('*'), | |
function(el) { | |
if (el.offsetWidth > docWidth) { | |
el.style.border = "1px solid red"; | |
console.log(el); | |
} | |
} |
View macos-change-screenshot-folder.sh
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
defaults write com.apple.screencapture location ~/Desktop/Screenshots;killall SystemUIServer |
View settings.php
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 the following lines to the end of your sites/default/settings.php file | |
* to disable caching, preprocessing CSS/JS files, and disable SSL | |
*/ | |
$conf['securepages_enable'] = FALSE; | |
$conf['cache'] = FALSE; | |
$conf['block_cache'] = FALSE; | |
$conf['preprocess_css'] = FALSE; | |
$conf['preprocess_js'] = FALSE; |
View html5-snip.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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
</body> | |
</html> |
View gist:867651d128878c8b94e51b96ea28ad49
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
Verifying that +williamdodson is my blockchain ID. https://onename.com/williamdodson |
View git-subtree-merge.sh
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
# Alternative to Git Submodules using Git Subtree: http://git-scm.com/book/en/Git-Tools-Subtree-Merging | |
# Remember to replace 'subtree-repo' with the repo name | |
# --prefix can be whatever you want to call your local copy | |
$ git remote add -f subtree-repo /path/to/subtree-repo | |
$ git merge --squash -s ours --no-commit subtree-repo/master | |
$ git read-tree --prefix=subtree-repo/ -u subtree-repo/master | |
$ git commit -m "Merge subtree-repo as a subtree." | |
# Then to update the external subtree repo: | |
$ git pull -s subtree subtree-repo master |
View _flash.scss
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
/* replaces /bitters/mixins/_flash.scss */ | |
@mixin flash( | |
$color, | |
$darken-text-amount: 50, | |
$darken-link-text-amount: 60, | |
$darken-link-text-hover-amount: 70 | |
) { | |
background: $color; | |
color: darken($color, $darken-text-amount); | |
font-weight: bold; |
View wp-custom-query-pagination.php
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 | |
/** | |
* | |
* This module demonstrates pagination for a Custom Query in | |
* WordPress. It should work as a template in the default theme. | |
* Most of the formatting has been left out to make the core | |
* coding stand out. | |
* | |
* Author: Mac McDonald | |
* Contact using About->Contact Us at BluegrassMiataClub.com |
View placeholder.scss
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
// placeholder styling (use: @include placeholder(#e5e5e5);) | |
@mixin placeholder($color){ | |
&::-webkit-input-placeholder { | |
color: $color; | |
} | |
&:-moz-placeholder { /* Firefox < 18 */ | |
color: $color; | |
opacity: 1; | |
} | |
&::-moz-placeholder { /* Firefox >= 19 */ |
NewerOlder