Skip to content

Instantly share code, notes, and snippets.

View scotthorn's full-sized avatar

Scott Horn scotthorn

  • Achieve Internet
  • Lexington, KY, USA
View GitHub Profile
<div class="quote">
<div class="quote-symbol">“</div>
<p></p>
<p></p>
<p class="signature">
<span class="sig-name">Lyle D. Roelofs</span>
<span class="sig-position">President, Berea College</span>
<span class="sig-extra">Only used in one or two, blue text</span>
</p>
</div>
.cd-search-trigger::before, .cd-search-trigger::after {
/* search icon */
content: '';
position: absolute;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
transition: opacity 0.3s;
/* Force Hardware Acceleration in WebKit */
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
@scotthorn
scotthorn / gist:a844a5c3fce4b15496fa
Created March 6, 2016 01:37
Crawl El Capitan Report
Process: Crawl [44831]
Path: /Users/USER/Library/Application Support/Steam/*/Crawl.app/Contents/MacOS/Crawl
Identifier: unity.Powerhoof.Crawl
Version: Unity Player version 4.6.6f2 (4.6.6f2)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: Crawl [44831]
User ID: 501
Date/Time: 2016-03-05 20:35:14.086 -0500
@scotthorn
scotthorn / soliloquy_wordpress_native_responsive.php
Last active January 16, 2018 23:26
Make Soliloquy use the native responsive image handling from Wordpress 4.4+
<?php
// Make Soliloquy sliders use wp's native responsive images with wp retina
function my_theme_soliloquy_output($slider, $data) {
return wp_make_content_images_responsive($slider);
}
add_filter('soliloquy_output', 'my_theme_soliloquy_output', 10, 2);
// wp_make_content_images_responsive needs the img tags to have a class with their id
function my_theme_soliloquy_image_slide_class($classes, $item, $i, $data, $mobile) {
$classes[] = 'wp-image-' . $item['id'];
@scotthorn
scotthorn / DoIt.md
Last active January 2, 2017 01:56
Setting up Drupal 7 on AWS Ubuntu 14.04 with Nginx, Memcache, and Varnish
@scotthorn
scotthorn / viewport-shots.js
Last active June 29, 2020 08:49
Nightwatch.js script for taking screenshots of a given URL at various browser widths.
/*
* Takes provided URL passed as argument and make full height screenshots of this page
* with several viewport widths using Nightwatch.js with Selenium.
*
* These viewport widths are taken from common android and iOS devices. Modify as needed.
*
* Takes an optional second argument for the path where screenshots are saved.
*
* Usage:
* $ nightwatch -t viewport-shots.js http://example.com
/*
* Takes provided URL passed as argument and make full height screenshots of this page
* with several viewport widths.
*
* These viewport widths are taken from common android and iOS devices. Modify as needed.
*
* Takes an optional second argument for the path where screenshots are saved.
*
* Usage:
* $ casperjs screenshots.js http://example.com