Skip to content

Instantly share code, notes, and snippets.

View donnes's full-sized avatar
🏠
Working from home

Donald Silveira donnes

🏠
Working from home
View GitHub Profile
@donnes
donnes / index.tsx
Last active November 20, 2023 08:56
Uploadthing custom UploadDropzone implementation
import { useState } from 'react'
import { UploadDropzone } from "~/components/upload-dropzone";
import { useUploadThing } from "~/hooks/use-uploadthing";
import type { FileRouter } from "~/server/uploadthing";
const Home: NextPage = () => {
const [files, setFiles] = useState<File[]>([]);
const { startUpload, isUploading, permittedFileInfo } = useUploadThing({
endpoint: "upload",
@donnes
donnes / .editorconfig
Last active August 28, 2020 01:45
ESLint Setup
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@donnes
donnes / .zshrc
Created August 13, 2019 15:02
.zshrc configs
# Add to PATH environment
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH="$PATH:$(yarn global bin)"
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
@donnes
donnes / gitflow-breakdown.md
Created October 9, 2018 16:59 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository