Skip to content

Instantly share code, notes, and snippets.

View huang47's full-sized avatar

ShihChi Huang huang47

  • Cupertino, California
View GitHub Profile
<form action="https://app.convertkit.com/forms/5180519/subscriptions" class="seva-form formkit-form" method="post" data-sv-form="5180519" data-uid="0e0820071b" data-format="inline" data-version="5" data-options="{&quot;settings&quot;:{&quot;after_subscribe&quot;:{&quot;action&quot;:&quot;message&quot;,&quot;success_message&quot;:&quot;Success! Now check your email to confirm your subscription.&quot;,&quot;redirect_url&quot;:&quot;&quot;},&quot;analytics&quot;:{&quot;google&quot;:null,&quot;fathom&quot;:null,&quot;facebook&quot;:null,&quot;segment&quot;:null,&quot;pinterest&quot;:null,&quot;sparkloop&quot;:null,&quot;googletagmanager&quot;:null},&quot;modal&quot;:{&quot;trigger&quot;:&quot;timer&quot;,&quot;scroll_percentage&quot;:null,&quot;timer&quot;:5,&quot;devices&quot;:&quot;all&quot;,&quot;show_once_every&quot;:15},&quot;powered_by&quot;:{&quot;show&quot;:true,&quot;url&quot;:&quot;https://convertkit.com/features/forms?utm_campaign=poweredby&amp;utm_content=form&amp;utm_medium=referral&amp;utm_sou
@huang47
huang47 / gist:764f969b2ec9b58b01292571e98c0b1b
Created December 20, 2022 21:43
contract state machine
import {
createMachine,
assign,
actions as XActions,
EventObject,
} from 'xstate';
const { choose } = XActions;
interface ContractContext {
{
"deploymentId": "dpl_3ZjAWhnMpkBpNF6tXrg76r7WLVna",
"host": "entrance-web-jdo57zxfr-funwoo.vercel.app",
"id": "1639307385296516829816336202",
"message": "START RequestId: 63c50584-1fcb-4d3c-9cf0-fdc31a9dce75 Version: $LATEST\n2021-12-12T11:09:45.621Z\t63c50584-1fcb-4d3c-9cf0-fdc31a9dce75\tERROR\tError: Cannot find module '/var/task/node_modules/next/dist/server/next.js'. Please verify that the package.json has a valid \"main\" entry\n at tryPackage (internal/modules/cjs/loader.js:321:19)\n at Function.Module._findPath (internal/modules/cjs/loader.js:534:18)\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)\n at Function.Module._load (internal/modules/cjs/loader.js:746:27)\n at Module.require (internal/modules/cjs/loader.js:974:19)\n at require (internal/modules/cjs/helpers.js:93:18)\n at Object.<anonymous> (/var/task/node_modules/@sentry/nextjs/dist/utils/instrumentServer.js:7:14)\n at Module._compile (internal/modules/cjs/loader.js:1085:14)\n a
From 179ec79ad7b93f13260a87fa7e404444316dbdc4 Mon Sep 17 00:00:00 2001
From: ShihChi Huang <huge.huang+github@gmail.com>
Date: Sat, 27 Nov 2021 16:06:27 -0800
Subject: [PATCH] FIX: incompatible sass warning
---
styles/Asset.module.sass | 2 +-
styles/globals.sass | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
From 67965e7776dbb0f6f849686f34ac1fd9bfbcbb46 Mon Sep 17 00:00:00 2001
From: ShihChi Huang <huge.huang+github@gmail.com>
Date: Sun, 18 Oct 2020 15:49:15 -0700
Subject: [PATCH] FEAT: supports BEFORE/EXCEPT
---
examples/demo/config.tsx | 3 ++-
modules/components/operators/Proximity.jsx | 30 ++++++++++++++++------
modules/config/basic.js | 9 ++++---
modules/index.d.ts | 1 +
@huang47
huang47 / machine.js
Created October 16, 2020 19:40
Generated by XState Viz: https://xstate.js.org/viz
const module = { exports: {} };
const get = (o, path) => path.split('.').reduce((a, c) => a[c] ? a[c] : {}, o || {});
// User Roles
const USER_ROLE = {
MOBILE_DISTRIBUTION: 'MOBILE_DISTRIBUTION',
};
// Status
const TASK_STATUS = {
APPROVED: 'approved',
@huang47
huang47 / machine.js
Last active October 16, 2020 19:39
Generated by XState Viz: https://xstate.js.org/viz
const module = { exports: {} };
const get = (o, path) => path.split('.').reduce((a, c) => a[c] ? a[c] : {}, o || {});
// User Roles
const USER_ROLE = {
MOBILE_DISTRIBUTION: 'MOBILE_DISTRIBUTION',
};
// Status
const TASK_STATUS = {
APPROVED: 'approved',
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import {
/**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// initial value: 0,
// @flow
import React from 'react';
import { View, Text } from 'react-native';
import IconRenderer from './IconRenderer';
import type { TIcon, TColor } from '../type';
import { Size, type TSize, type TSizeLookup } from './size';
export type Props = {