Skip to content

Instantly share code, notes, and snippets.

View dbhagen's full-sized avatar

Daniel Hagen dbhagen

View GitHub Profile
@dbhagen
dbhagen / setup-typescript.sh
Created October 18, 2023 16:28 — forked from lewebsimple/setup-typescript.sh
TypeScript / ESLint / Prettier / Vue 3
#!/bin/bash
yarn add -D @typescript-eslint/eslint-plugin \
typescript ts-node-dev \
@typescript-eslint/parser @typescript-eslint/eslint-plugin eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue prettier
cat > .eslintrc.js <<EOF
module.exports = {
root: true,
env: {
@dbhagen
dbhagen / .block
Created June 26, 2023 14:50 — forked from curran/.block
Persons of Concern StreamGraph by Origin
license: mit
border: no
@dbhagen
dbhagen / _app.tsx
Last active October 17, 2020 20:34
[Codelift] #Amplify #Nextjs #CodeLift
import React, { FunctionComponent, useEffect } from 'react'
import ReactDOM from 'react-dom'
import { register } from 'codelift'
register({ React, ReactDOM })
import LogRocket from 'logrocket'
import setupLogRocketReact from 'logrocket-react'
if (typeof window !== 'undefined') {
LogRocket.init('crmfpp/cashstudio', {
@dbhagen
dbhagen / Base-Original.jsx
Last active October 14, 2020 15:22
[ReactJS to ReactTS]
import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { withTheme } from '../theme'
import { filterProps } from '../utils'
import { getTailwindClassNames, tailwindProps, propTypes } from '../tailwind'
const Base = ({
theme,
@ECHO off
:top
CLS
ECHO Choose a shell:
ECHO [1] cmd
ECHO [2] zsh
ECHO [3] PowerShell
ECHO [4] bash
ECHO [5] Python
ECHO.

Keybase proof

I hereby claim:

  • I am dbhagen on github.
  • I am dbhagen87 (https://keybase.io/dbhagen87) on keybase.
  • I have a public key ASDUKstcItfHlzSpnoqT98y1h7GLVQDeOS_0pDejPmjbzAo

To claim this, I am signing this object: