A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| The MIT License (MIT) | |
| Copyright (c) James Dennes | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| var retina = window.devicePixelRatio > 1; | |
| if (retina) { | |
| // the user has a retina display | |
| } | |
| else { | |
| // the user has a non-retina display | |
| } |
| # backup-trello | |
| description "regular background program processing daemon" | |
| start on (local-filesystems and net-device-up IFACE!=lo) | |
| setuid hendersont | |
| setgid hendersont | |
| env HOME=/home/hendersont | |
| export HOME |
| // Move Yoast to bottom | |
| function yoasttobottom() { | |
| return 'low'; | |
| } | |
| add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
| /** | |
| * The pseudo-element 'content' property doesnt accept normal (») style | |
| * HTML entities. These variables below easy the pain of looking up the HEX codes... | |
| * | |
| * Referenced from http://www.danshort.com/HTMLentities/ | |
| * | |
| * TODO: Add all the other entities? Worth it? Some day? Maybe? | |
| */ | |
| // Punctuation |
| <?php | |
| /* | |
| Plugin Name: Testimonials Custom Post Type | |
| Plugin URI: http://wpbeaches.com/create-custom-post-types-in-genesis-child-theme-in-wordpress/ | |
| Description: Testimonials Custom Post Types | |
| Author: Neil Gowran | |
| Version:1.0.0 | |
| Author URI:http://wpbeaches.com | |
| */ |
| <?php | |
| /* Gravity Forms Word Count Script */ | |
| function els_load_scripts() { | |
| wp_enqueue_script('gravity-forms-word-count', get_stylesheet_directory_uri() . '/js/jquery.gravity_word_count.js', array('jquery'), '0.1', true); | |
| } | |
| add_action('wp_enqueue_scripts', 'els_load_scripts'); | |
| /*Then in the form, for fields that need the word count, add the class ‘els-word-count[300].' Change [300] as needed for the maximum words that can be added to that particular field.*/ | |
| /*Source http://www.gravityhelp.com/forums/topic/maximum-word-count#post-149331*/ |
| /** | |
| * ABOUT | |
| * Google Apps Script to post a message to Slack when someone responds to a Google Form. | |
| * | |
| * Uses Slack incoming webhooks - https://api.slack.com/incoming-webhooks | |
| * and FormsResponse - https://developers.google.com/apps-script/reference/forms/form-response | |
| * | |
| * | |
| * AUTHOR | |
| * Akash A <github.com/akash1810> |
| /* | |
| * Smooth Scroll on Pageload | |
| * Smooth scrolling on page load if URL have a hash | |
| * Author: Franco Moya - @iamravenous | |
| */ | |
| if (window.location.hash) { | |
| var hash = window.location.hash; | |
| if ($(hash).length) { |