Skip to content

Instantly share code, notes, and snippets.

View Plastickid's full-sized avatar

Plastickid

View GitHub Profile
@Plastickid
Plastickid / meta-tags.md
Created February 29, 2024 14:32 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@Plastickid
Plastickid / gist:61952bea88591fabc2e85cf859642b94
Created October 25, 2022 16:40 — forked from jonathanmoore/gist:c0e0e503aa732bf1c05b7a7be4230c61
Linked options helper methods for Shopify. See this: http://docs.shopify.com/manual/configuration/store-customization/advanced-navigation/linked-product-options - Updated to work with sectioned themes (tested with District)
<script>
// (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: mllegeorgesand@gmail.com
// See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus
// Modified by Jonathan Moore (Style Hatch) https://github.com/jonathanmoore
/*
Updated to work with sectioned themes
- Added required methods from the deprecated options_selection.js
- Triggers an initial variant change
- Hides sold out variants with only one option
@Plastickid
Plastickid / README.md
Created April 30, 2022 16:54 — forked from premitheme/README.md
Create automator service to clean zip files

Clean Zip Service for Mac

In Automator create new workflow with the following settings

Service recieves selected: files or folders in: Finder.app

Run Shell Script

Shell: /bin/bash Pass input: to stdin

@Plastickid
Plastickid / findStyles.js
Created February 10, 2022 21:31 — forked from macbookandrew/findStyles.js
List unique CSS properties for all DOM elements
/**
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer}
*
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @version 1.1
*
@Plastickid
Plastickid / SaveIconsForiOSIcons.jsx
Created January 13, 2022 11:38 — forked from jeffcollier/SaveIconsForiOSIcons.jsx
Adobe Illustrator automation script for exporting an icon artboard to all the sizes needed for iOS apps. [I upgraded this hyper-helpful script from Jeremie Weldin for iOS 7 images sizes. To apply, open your icon file in Illustrator, select File | Scripts | Others..., and browser to the directory containing this file. -Jeff]
var destFolder = null;
destFolder = Folder.selectDialog( 'Select the folder where you want to save the exported files.', app.activeDocument.path );
var baseDestName = app.activeDocument.name;
if (baseDestName.indexOf('.') < 0)
{
//nothing
} else {
var dot = baseDestName.lastIndexOf('.');
@Plastickid
Plastickid / Rounded Corners for Outlook.html
Created December 31, 2021 16:18 — forked from marcbacon/Rounded Corners for Outlook.html
VML based button. Rounded corners will work in Outlook.
<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 &rarr;</center>
</v:roundrect>
<![endif]-->
@Plastickid
Plastickid / .gitignore
Created October 15, 2021 16:24 — forked from salcode/.gitignore
.gitignore file for a general web project - Bare Minimum Git
# -----------------------------------------------------------------
# .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
#
@Plastickid
Plastickid / .gitignore
Created October 15, 2021 16:24 — forked from salcode/.gitignore
Please see https://salferrarello.com/wordpress-gitignore/ for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
# -----------------------------------------------------------------
# .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.
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)
@Plastickid
Plastickid / menu-array-loop
Created January 21, 2021 18:19 — forked from jonesch/menu-array-loop
Loop through an array of menu items.
//Use CSS to make these columns responsive.
<ul class="food-menus<?=(' '.$menu_category)?>">
<?php
//Let's get a count of how many items we are going to display of our menu
$total_menu_categories = count($menu[$menu_category]);
$total_items = $total_menu_categories;
foreach($menu[$menu_category] as $section => $value) {
$total_items = $total_items + count($value);
} //get the total number of <li>s on our page
$number_of_columns = 3;