Skip to content

Instantly share code, notes, and snippets.

View cristian-aldea's full-sized avatar
🎁
Today is a gift, that is why we call it the Present.

Cristian Aldea cristian-aldea

🎁
Today is a gift, that is why we call it the Present.
View GitHub Profile
// An implementation of https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/ in React
import React, { useRef } from 'react'
const AutoGrowingTextArea = props => {
const grower = useRef(null);
return(
<div className="AutoGrowingTextArea" ref={grower}>
<textarea
@cristian-aldea
cristian-aldea / slick-terminal.md
Last active May 19, 2024 19:27
Ubuntu + Zsh + Oh My Zsh + Powerlevel10k = Sliiiiiiiiiiiiick

Based on: https://gist.github.com/kevin-smets/8568070

This gist outlines the steps needed to setup zsh, ohmyzsh and the powerlevel10k theme, available for anyone to follow.

  1. Setup required dependencies

    # update packages
    sudo apt update
    
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 24, 2024 19:36
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k