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 / 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)
}
@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: []
import React, { createContext, useContext, useReducer } from 'react'
interface StateInterface {
data: string[]
}
interface Actions {
type: string
payload: any
}
@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
@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 / .editorconfig
Last active December 27, 2021 20:00
Destinio Dotfiles
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
:root {
--black: #111;
--gray: #555;
--gray-dark: #1c1d21;
--gray-light: #888;
--white: #f7f7f7;
--red: #e94a50;
--green: #7dbb5c;
--blue: #4fb3db;
--orange: #fe7c0d;
/* HEX */
--black: #111;
--gray: #555;
--gray-dark: #1c1d21;
--gray-light: #888;
--white: #f7f7f7;
--red: #e94a50;
--green: #7dbb5c;
--blue: #4fb3db;
@destinio
destinio / conventionalcommits.md
Created March 25, 2022 13:45
Conventional Commits with Emojis
Type Emoji code
feat :sparkles:
fix 🐛 :bug:
docs 📚 :books:
style 💎 :gem:
refactor 🔨 :hammer:
perf 🚀 :rocket:
test 🚨 :rotating_light:
build 📦 :package:
@destinio
destinio / react.html
Last active March 27, 2022 12:33
React CDN
<!-- READ FIRST: https://babeljs.io/docs/en/babel-standalone -->
<!-- <script type="text/babel" src="https://unpkg.com/@babel/standalone/babel.min.js"></script> -->
<script src="https://unpkg.com/[email protected]/umd/react.development.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js"></script>