Skip to content

Instantly share code, notes, and snippets.

Working from home

William Dodson obxdesignworks

Working from home
Block or report user

Report or block obxdesignworks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View find-unintended-body-overflow-css.js
var docWidth = document.documentElement.offsetWidth;
function(el) {
if (el.offsetWidth > docWidth) { = "1px solid red";
obxdesignworks /
Created Dec 16, 2016
Changes the default location for screenshots on macOS
defaults write location ~/Desktop/Screenshots;killall SystemUIServer
obxdesignworks / settings.php
Last active Dec 1, 2016
Disable caching, preprocessing, and SSL for local site in Drupal
View settings.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
<!DOCTYPE html>
<meta charset="utf-8">
View gist:867651d128878c8b94e51b96ea28ad49
Verifying that +williamdodson is my blockchain ID.
obxdesignworks / plugin.get-input-type.js
Created Dec 7, 2015
jQuery plugin to return a given input type as a string (e.g. "textarea").
View plugin.get-input-type.js
* Function getInputType
* @return String name for the type of input (i.e. select or textarea)
* @example <code>var inputType = $(input).getInputType(); // returns a string representation of the given input</code>
* @author William Dodson <>
* @version 1.0.0
(function ($) {
'use strict';
View spread.sass
// strip-units required by spread mixin
@function strip-units($number)
@return $number / ($number * 0 + 1)
// pow and sqrt required by ease function
// adapted from
@function pow($base, $exponent)
$value: $base
View gist:277f830a57c6215a127c
/* ORIGINAL: search-exclude.php Line 119 */
public function searchFilter($query)
if ($query->is_search) {
$query->set('post__not_in', array_merge($query->get('post__not_in'), $this->getExcluded()));
return $query;
obxdesignworks / Social Media Brand Colors
Last active Aug 29, 2015
Social media branding colors. I'll update this Gist as I gather more and feel free to fork and collaborate.
View Social Media Brand Colors
Dribbble: #C73B6F
Facebook: #3B5998
Flickr: #FE0883
Forrst: #3B7140
Foursquare: #8FD400
GitHub: #4183C4
Google+: #C63D2D
Instagram: #4E433C
Linkedin: #4875B4
Tumblr: #2B4964
You can’t perform that action at this time.