Skip to content

Instantly share code, notes, and snippets.

#fields .field:not(:last-child):after {
background-color: #e3e5e8;
content: '';
display: block;
height: 1px;
margin-top: 32px;
position: relative;
left: -24px;
width: calc(100% + 48px);
}
@chadclark
chadclark / imager.php
Created January 24, 2017 13:41
Imager Plugin Settings for Craft CMS
<?php
/**
* Imager by André Elvan
*
* @author André Elvan <http://vaersaagod.no>
* @package Imager
* @copyright Copyright (c) 2016, André Elvan
* @license http://opensource.org/licenses/mit-license.php MIT License
* @link https://github.com/aelvan/Imager-Craft
#!/bin/sh
# Sync remote assets to a local directory
# ----------------------------------------------
#
# Useful for syncing images uploaded to a remote server to a local directory.
#
# Don’t forget chmod +x to make the script executable.
#
# Change the extension to .command to run the script directly from OS X Finder.
@chadclark
chadclark / 1-ee-template-export.xml
Last active August 29, 2015 14:16
EE 1.x to Statamic Conversion
{assign_variable:master_weblog_name="blahg"}
{exp:rss:feed weblog="blahg"}
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a WordPress eXtended RSS file generated by ExpressionEngine as an export of your blog. -->
<!-- It contains information about your blog's posts, comments, trackbacks and categories. -->
<!-- You use this file to transfer content from your ExpressionEngine blog to your WordPress blog. -->
<!-- To import this information into a WordPress blog follow these steps. -->
<!-- 1. Log into that blog as an administrator. -->
@chadclark
chadclark / gulpfile.js
Last active July 25, 2016 09:18
Gulp Imagemin SVGO + Sketch.app Happiness
Being frustrated for the 87th time after SVGO (via gulp-imagemin) rendered my SVG files exported from Sketch.app useless, I tested to figure out which SVGO plugins to disable.

Keybase proof

I hereby claim:

  • I am chadclark on github.
  • I am chadclark (https://keybase.io/chadclark) on keybase.
  • I have a public key whose fingerprint is 9E1E 1318 E58A 2A06 E411 3319 26BF 585B 10F6 BD7B

To claim this, I am signing this object:

@chadclark
chadclark / dandelion.yml
Created January 31, 2014 18:53
dandelion.yml
# Required
# --------
scheme: sftp
host:
username:
password:
# Optional
# --------
@chadclark
chadclark / config.php
Last active January 3, 2016 08:49
ExpressionEngine 1.x Master Config. Throwback.
<?php
if ( ! defined('EXT')){
exit('Invalid file request');
}
$conf['app_version'] = ""; // EE Version Number -- Fill this in before updating so it knows where to begin
$conf['license_number'] = "";
$conf['debug'] = "1";
$conf['install_lock'] = "1";
<section data-type="background" data-speed="10">
</section>
@chadclark
chadclark / Robots Environment .htaccess
Last active October 17, 2022 11:48
Robots.txt for Staging and Production. By adding these rewrite rules to your .htaccess file, robots_dev.txt will be served as robots.txt on any non-production server.
RewriteEngine On
# Robots.txt for Staging and Production -- change productiondomain.com to the actual url of your production site
RewriteCond %{HTTP_HOST} !productiondomain.com$ [NC]
RewriteRule ^robots.txt robots_dev.txt [L]