Skip to content

Instantly share code, notes, and snippets.

View jcowher's full-sized avatar

Jonathan Cowher jcowher

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jcowher on github.
  • I am jrcowher (https://keybase.io/jrcowher) on keybase.
  • I have a public key ASAMw_AQiCcPMu6QLQ1aK_5JMQQI2Y5w3B5aETZ0EurwAgo

To claim this, I am signing this object:

@jcowher
jcowher / wp-file-proxy.php
Created February 27, 2019 14:54
WordPress class for downloading missing assets from production to dev on the fly
<?php
if ( ! class_exists( 'WP_File_Proxy' ) ) :
class WP_File_Proxy {
/**
* @var string
*/
protected $proxy_domain;
<ul class="menu share-tools"
data-url="{{ url('entity.node.canonical', {'node': node.id}) }}"
data-title="{{ node.title.value }}">
<li class="share-tools__item"><a class="share-tools__button share-tools__button--twitter" target="_blank" href="#twitter" rel="nofollow noopener"></a></li>
<li class="share-tools__item"><a class="share-tools__button share-tools__button--facebook" target="_blank" href="#facebook" rel="nofollow noopener"></a></li>
<li class="share-tools__item"><a class="share-tools__button share-tools__button--email" target="_blank" href="#email" rel="nofollow noopener"></a></li>
</ul>
@jcowher
jcowher / settings.local.php
Created November 1, 2019 13:19
Local settings.php for Drupal 8
<?php
/**
* Display all PHP errors.
*/
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
/**
* Enable development services.