This file contains hidden or 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
(function() { | |
const urlParams=new URLSearchParams(window.location.search); | |
const id=urlParams.get('v'); | |
navigator.clipboard.writeText(id); | |
})(); | |
void(0); |
This file contains hidden or 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
{ | |
"Red": { | |
"50": { | |
"color": "#FFEBEE", | |
"txt": "dark" | |
}, | |
"100": { | |
"color": "#FFCDD2", | |
"txt": "dark" | |
}, |
This file contains hidden or 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
/* Run the following commands to get colors copied to console */ | |
/* https://material.io/design/color/the-color-system.html#tools-for-picking-colors */ | |
const colors = []; | |
const pallettes = $$('section.module-module-module'); | |
for (p in pallettes) {const dets = $$('.color-tag', pallettes[p]); for (d in dets) {colors.push([$('.shade', dets[d]).innerHTML, $('.hex', dets[d]).innerHTML, dets[d].classList.contains('light') ? 'light':'dark'])}}; | |
let current = ''; | |
const combo = {}; | |
for(c in colors) {let splt = colors[c][0].split(' '); let wt = splt.pop(); if (splt.length > 0) { current =splt.join(' '); combo[current]={}} let hx=colors[c][1]; combo[current][wt]={color: hx, txt: colors[c][2]};} | |
copy(combo); |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- coding: utf8 -*- | |
""" | |
DESCRIPTION GOES HERE | |
""" | |
import sys | |
import os | |
import traceback | |
import argparse |
This file contains hidden or 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
<?php | |
function analytics_confirmation($confirmation, $form, $entry, $ajax = 0) | |
{ | |
$isProduct = false; | |
foreach ($form['fields'] as $field) { | |
if ($field['type'] == 'product') { | |
$isProduct = true; | |
$fieldID = $field['id']; | |
$productSKU = $form['id'] . '-' . str_replace(" ", "_", $field['label']); | |
break; |