Skip to content

Instantly share code, notes, and snippets.

View kodiyak's full-sized avatar
🎯
Focusing

Math W. kodiyak

🎯
Focusing
View GitHub Profile
@kodiyak
kodiyak / example.html
Created September 10, 2024 02:09
Shopify Table for Specifications
<div class="table-column">
<table class="table-default">
<tbody>
<tr>
<th scope="row">Código do Produto</th>
<td>E88</td>
</tr>
<tr>
<th scope="row">Cor do Produto</th>
<td>Preto</td>
### Keybase proof
I hereby claim:
* I am kodiyak on github.
* I am math536 (https://keybase.io/math536) on keybase.
* I have a public key ASCM6oMCwgkpjswCylnjYGbj5EScL7DYU172yu1zy2IFrwo
To claim this, I am signing this object:
import { TypedEmitter } from 'tiny-typed-emitter'
type TypeLoader = {
[key: string]: number
}
class Loaders extends TypedEmitter<{
start: (name: string) => void
finish: (name: string) => void
forceUpdate: () => void
@kodiyak
kodiyak / .eslintrc.js
Last active October 22, 2024 16:43
Personal Eslint Config
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: ['plugin:react/recommended', 'plugin:prettier/recommended', 'standard'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
@kodiyak
kodiyak / BoxColorMode.tsx
Last active May 18, 2021 19:11
Useful Chakra UI Components
import React from 'react'
import { Box, BoxProps, useColorModeValue } from '@chakra-ui/react'
export interface BoxColorModeProps extends BoxProps {
dark?: BoxProps
light?: BoxProps
}
const BoxColorMode: React.FC<BoxColorModeProps> = ({
dark,
@kodiyak
kodiyak / PromiseQueue.ts
Created May 18, 2021 18:55
Promise Queue
import { PromiseQueueItem, PromiseItem } from './PromiseQueueItem'
export class PromiseQueue {
public isActive = true
public isRunning = false
private promises: PromiseQueueItem[] = []
public get promisesRunning() {
return this.promises.filter((promiseItem) => promiseItem.isRunning)
}
module.exports = {
purge: [],
target: 'relaxed',
prefix: '',
important: false,
separator: ':',
theme: {
themeVariants: ['dark', 'light'],
screens: {
sm: '640px',