Skip to content

Instantly share code, notes, and snippets.

View batbrain9392's full-sized avatar

Debmallya Bhattacharya batbrain9392

View GitHub Profile
@batbrain9392
batbrain9392 / .zshrc
Created December 16, 2022 12:54
my zsh config - Oh My Zsh + Antigen + Powerlevel10k
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
@batbrain9392
batbrain9392 / board.jsx
Last active March 11, 2020 23:31 — forked from danielgnz/tic-tac-toe-1.jsx
React tic-tac-toe tutorial - Rewrite Board to use two loops to make the squares instead of hardcoding them
render() {
return (
<div>
<div className="board-row">
{
Array(3).fill(null).map((_, i) => {
const row = Array(3).fill(null).map((_, j) => this.renderSquare(3 * i + j));
return (
<div key={i} className="board-row">
{row}