Skip to content

Instantly share code, notes, and snippets.

View anishLearnsToCode's full-sized avatar
🧙
Unexpected '{' on line 32

Anish Sachdeva anishLearnsToCode

🧙
Unexpected '{' on line 32
View GitHub Profile
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 15, 2024 21:14
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@anishLearnsToCode
anishLearnsToCode / pixelate.m
Created July 9, 2020 08:38
This is a MATLAB function that pixelates a given image with parameter w. uses a 2w+1 mask size for blurring.
function W = pixelate(I, w)
[n, m, ~] = size(I);
W = I;
for row = w + 1 : 2 * w + 1 : n + w
for column = w + 1 : 2 * w + 1 : m + w
row_upper = upper(row + w, n, n);
column_upper = upper(column + w, m, m);
sub_image = I(row - w : row_upper, column - w : column_upper, :);
average = mean(mean(sub_image));
@anishLearnsToCode
anishLearnsToCode / plants-vs-zombies-cheats.json
Created July 21, 2020 18:30
Plants ☘ vs Zombies 💀 Cheats
{
"future": "adds sunglasses to all zombies",
"mustache": "adds mustache to all zombies"
}