First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
/********************************************************** | |
Export to PDFs.jsx | |
DESCRIPTION | |
This sample gets files specified by the user from the | |
selected folder and batch processes them and saves them | |
as PDFs. | |
#target illustrator | |
main(); | |
function main(){ | |
if(!documents.length) return; | |
var doc = app.activeDocument; | |
var docTitle = doc.name; | |
var docTitle = docTitle.substring(0, docTitle.length - 3); |
// FIT LAYER TO CANVAS | |
// via https://forums.adobe.com/message/5413957#5413957 | |
var maintainAspectRatio;// set to true to keep aspect ratio | |
if(app.documents.length>0){ | |
app.activeDocument.suspendHistory ('Fit Layer to Canvas', 'FitLayerToCanvas('+maintainAspectRatio+')'); | |
} | |
function FitLayerToCanvas( keepAspect ){// keepAspect:Boolean - optional. Default to false | |
var doc = app.activeDocument; | |
var layer = doc.activeLayer; | |
// do nothing if layer is background or locked |
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
C (chained with next rule) | |
CO=cookie (set specified cookie) | |
E=var:value (set environment variable var to value) | |
F (forbidden - sends a 403 header to the user) | |
G (gone - no longer exists) | |
H=handler (set handler) | |
L (last - stop processing rules) | |
Last rule: instructs the server to stop rewriting after the preceding directive is processed. | |
N (next - continue processing rules) |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress @salcode | |
# ver 20180808 | |
# | |
# From the root of your project run | |
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
# to download this file | |
# | |
# By default all files are ignored. You'll need to whitelist | |
# any mu-plugins, plugins, or themes you want to include in the repo. |
# ----------------------------------------------------------------- | |
# .gitignore | |
# Bare Minimum Git | |
# https://salferrarello.com/starter-gitignore-file/ | |
# ver 20210211 | |
# | |
# From the root of your project run | |
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore | |
# to download this file | |
# |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |
<tr> | |
<td> | |
<div> | |
<!--[if mso]> | |
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://example.com" style="height:36px;v-text-anchor:middle;width:150px;" arcsize="5%" strokecolor="#EB7035" fillcolor="#EB7035"> | |
<w:anchorlock/> | |
<center style="color:#ffffff;font-family:Helvetica, Arial,sans-serif;font-size:16px;">I am a button →</center> | |
</v:roundrect> | |
<![endif]--> |