Skip to content

Instantly share code, notes, and snippets.

View Colin6618's full-sized avatar

Han Colin6618

  • Tokyo
View GitHub Profile
@Colin6618
Colin6618 / AuthModal.tsx
Created May 25, 2023 23:15 — forked from burakorkmez/AuthModal.tsx
Leetcode Clone
<>
<div className='absolute top-0 left-0 w-full h-full flex items-center justify-center bg-black bg-opacity-60'></div>
<div className='w-full sm:w-[450px] absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] flex justify-center items-center'>
<div className='relative w-full h-full mx-auto flex items-center justify-center'>
<div className='bg-white rounded-lg shadow relative w-full bg-gradient-to-b from-brand-orange to-slate-900 mx-6'>
<div className='flex justify-end p-2'>
<button
type='button'
className='bg-transparent rounded-lg text-sm p-1.5 ml-auto inline-flex items-center hover:bg-gray-800 hover:text-white text-white'
>
@Colin6618
Colin6618 / cherry-picky.sh
Created August 11, 2021 12:19 — forked from PiDayDev/cherry-picky.sh
Partial cherry-pick
#!/usr/bin/env bash
# Usage: ./cherry-pick <commit SHA or tag>
# It will cherry-pick given commit, but will only commit files in "src/" folder, skipping the rest.
# Bonus: the commit message and authorship information including the timestamp are copied from cherry-picked commit
# Credits to https://stackoverflow.com/a/5717615/7193150
git cherry-pick -n $1
git reset HEAD
git add src/