How to make an application icon for macOS using
iconset
&iconutil
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
byte character[8]={0x24, 0x24, 0x24, 0xa5, 0x81, 0x81, 0x7e, 0x0}; | |
uint8_t colPins[8]={ 2, 3, 4, 5, 6, 7, 8, 9}; | |
#define SER_PIN 10 | |
#define SCK_PIN 11 | |
#define RCK_PIN 12 | |
void setup() { | |
// Turn everything to low |
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
#!/usr/bin/env bash | |
#styles | |
VP_NONE='\033[00m' | |
VP_RED='\033[01;31m' | |
VP_GREEN='\033[01;32m' | |
VP_YELLOW='\033[01;33m' | |
VP_PURPLE='\033[01;35m' | |
VP_CYAN='\033[01;36m' | |
VP_WHITE='\033[01;37m' |
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
/* simplemover | |
* | |
* By: A simple routine to move every 4th LED up the strip and fade behind. | |
* | |
* No delay statements were harmed in the creation of this routine. | |
* | |
* By: Andrew Tuline | |
* | |
* Date: June 11, 2018 | |
* |
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
{ | |
"aliceblue": "#f0f8ff", | |
"antiquewhite": "#faebd7", | |
"aqua": "#00ffff", | |
"aquamarine": "#7fffd4", | |
"azure": "#f0ffff", | |
"beige": "#f5f5dc", | |
"bisque": "#ffe4c4", | |
"black": "#000000", | |
"blanchedalmond": "#ffebcd", |
- Ant Design - https://ant.design/
- Atlaskit by Atlassian - https://atlaskit.atlassian.com/
- Base Web by Uber - https://baseweb.design/
- Blueprint by Palantir - https://blueprintjs.com/
- Carbon by IBM - https://www.carbondesignsystem.com/
- Elastic UI by Elastic - https://elastic.github.io/eui/
- Evergreen by Segment - https://evergreen.segment.com/
Photo by Ricardo Gomez Angel on Unsplash
This gist is a collection of common patterns I've personally used here and there with Custom Elements.
These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.
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
import React, { FunctionComponent, ReactChild } from 'react' | |
const listeners = Symbol('jsx-web-comp/event-listeners') | |
const eventPattern = /^onEvent/ | |
const toKebabCase = (str: string): string => str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase() | |
export default function jsx (type: string | FunctionComponent, props: Record<string, any>, ...children: ReactChild[]) { | |
const isCustomElement = customElements.get(type as string) | |
const newProps = { ...props } |
Woocommerce Javascript events
Woocommerce Checkout JS events
$( document.body ).trigger( 'init_checkout' );
$( document.body ).trigger( 'payment_method_selected' );
$( document.body ).trigger( 'update_checkout' );
$( document.body ).trigger( 'updated_checkout' );
$( document.body ).trigger( 'checkout_error' );
$( document.body ).trigger( 'applied_coupon_in_checkout' );