Skip to content

Instantly share code, notes, and snippets.

View mosampaio's full-sized avatar

Marcos Sampaio mosampaio

  • Sydney, Australia
View GitHub Profile
@loretoparisi
loretoparisi / vscode_alias.sh
Created August 1, 2017 08:42
Visual Studio Code Alias macOs
alias vscode="/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron"
@sj26
sj26 / LICENSE.md
Last active March 8, 2024 18:31
Bash retry function

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit

@kaiquewdev
kaiquewdev / hell.js
Last active January 2, 2016 00:09
Callback hell? Let me show you a trick.
// Promessas podem resolver a sua vida.
// Mas se o Javascript foi pensado desta forma, com a possibilidade
// de funções dentro de funções, então existiria algum recurso para resolver este problema?
// Bom, não tem um recurso especifico que vai fazer a sua vida mudar, mas com algum conhecimento
// sobre a linguagem, você acaba descobrindo que isso pode acontecer.
// Primeiro exemplo - #1
function sayHello () {