This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin layout($sections, $unit:"%") { | |
#content { | |
@each $name, $rules in $sections { | |
.#{$name} { | |
@each $key, $value in $rules { | |
#{$key} : $value | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @see https://github.com/Adobe-CEP/Samples/blob/master/XmpSamplePanel/js/xmp_bridge.js | |
*/ | |
/* | |
* ADOBE SYSTEMS INCORPORATED | |
* Copyright 2014 Adobe Systems Incorporated | |
* All Rights Reserved. | |
* | |
* NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/png "access plus 1 month" | |
ExpiresByType text/css "access plus 1 month" | |
ExpiresByType application/pdf "access plus 1 month" | |
ExpiresByType text/x-javascript "access plus 1 month" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The rules below allow you to A/B test any page on your site by splitting traffic to one of two | |
# sub-pages depending on the timestamp when they visit. If the millisecond is an even number, | |
# they are redirect to /a/ if the millisecond is odd they go to /b/. This ensures a statisticaly | |
# even split since the probability of the second being even or odd is about 50/50. | |
# | |
# You will need to create 3 sub-pages on your site: @, a, b so you'll end up with : | |
# | |
# https://yourdomain.com/@/any-page-name | |
# https://yourdomain.com/a/any-page-name | |
# https://yourdomain.com/b/any-page-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https?://(www.)?(MyDomain.com|MyInstall.wpengine.com|MyCDNcrazyness1234567890(.wpengine|-wpengine).netdna-(ssl|cdn).com)/(wp-content|wp-includes)# => https://MyCDNcrazyness1234567890-wpengine.netdna-ssl.com/$5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"multipass" : true, | |
"plugins": [ | |
{"removeTitle": false}, | |
{"cleanupAttrs": true}, | |
{"inlineStyles": {"onlyMatchedOnce": false}}, | |
{"removeDoctype": true}, | |
{"removeXMLProcInst": true}, | |
{"removeComments": true}, | |
{"removeMetadata": true}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Group layers in Adobe Illustrator into sub-layers based on a substring | |
* of the layer names. For instance, given layers named with the pattern: | |
* 'Icon-set-01-some-keywords-here' | |
* Call: | |
* groupLayers('Icon-set-01'); | |
* | |
* The result will be to create a new parent layer named 'Icon-Set-01' and | |
* to group any layer whose name starts with 'Icon-Set-01' under that layer. | |
* @param nameStem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ErrorBoundary extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { error: null, errorInfo: null }; | |
} | |
componentDidCatch(error, errorInfo) { | |
// Catch errors in any components below and re-render with error message | |
this.setState({ | |
error: error, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Export selection to SVG - export_selection_as_SVG | |
* (Adapted from Layers to SVG 0.1 - export_selection_as_SVG.jsx, by Rhys van der Waerden) | |
* | |
* @author SebCorbin | |
*/ | |
// Variables | |
var ignoreHidden = true, | |
svgExportOptions = (function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Usage : | |
* | |
* new SelectionExporter( | |
* app.activeDocument.selection[0], | |
* '/tmp/somefolder/tempfile.ai', | |
* 'My File' | |
* ); | |
*/ |