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 July 2, 2024 12:33
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k