Skip to content

Instantly share code, notes, and snippets.

View destinio's full-sized avatar
☯️
Present

Destin Lee destinio

☯️
Present
View GitHub Profile
@destinio
destinio / cli-snips.ts
Last active December 10, 2021 18:47
Some useful CLI snippets
// CHALK - coloring out put
import chalk from 'chalk'
console.log(chalk.redBright('Hello from chalk'))
// YARGS - parse argv
import yargs from 'yargs-parser'
const argv = yargs(process.argv.slice(2))
console.log(argv)
@destinio
destinio / .zshrc
Last active January 9, 2024 17:41
Mac set up script
# PATH
export PATH=$HOME/bin:/usr/local/bin:$HOME/.npm-global/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
export DENO_INSTALL="/Users/destin/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
export PHP_CS_FIXER_IGNORE_ENV=1
import React, { createContext, useContext, useReducer } from 'react'
interface StateInterface {
data: string[]
}
interface Actions {
type: string
payload: any
}
@destinio
destinio / appContext.js
Last active February 27, 2021 22:38
AppContext
import React, { createContext, useContext, useReducer} from 'react'
const AppContext = createContext()
export function useAppContext() {
return useContext(AppContext)
}
const initState = {
users: []
@destinio
destinio / dropshadow.css
Created January 7, 2020 15:51
css drop shadow
h1 {
font-family: "Luckiest Guy", cursive;
font-size: 4em;
color: #fff;
text-shadow: 0 0.1em 20px rgba(0, 0, 0, 1), 0.05em -0.03em 0 rgba(0, 0, 0, 1),
0.05em 0.005em 0 rgba(0, 0, 0, 1), 0em 0.08em 0 rgba(0, 0, 0, 1),
0.05em 0.08em 0 rgba(0, 0, 0, 1), 0px -0.03em 0 rgba(0, 0, 0, 1),
-0.03em -0.03em 0 rgba(0, 0, 0, 1), -0.03em 0.08em 0 rgba(0, 0, 0, 1), -0.03em 0 0 rgba(0, 0, 0, 1)
}