Skip to content

Instantly share code, notes, and snippets.

View afontcu's full-sized avatar
🚴‍♂️
¯\_(ツ)_/¯ ‏‏‎

Adrià Fontcuberta afontcu

🚴‍♂️
¯\_(ツ)_/¯ ‏‏‎
View GitHub Profile
@getify
getify / 1.md
Last active January 17, 2020 16:35
A question about JS parameter scopes, and closures over them vs function scopes

I received a question about this snippet of code:

function def(first="oldValue" , second=function(){
         return first;
}){
        var first="updatedValue";
        console.log('inside',first);
        console.log('function',second());
}
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k