Skip to content

Instantly share code, notes, and snippets.

View rodrigogs's full-sized avatar
🏠
Working from home

Rodrigo Gomes da Silva rodrigogs

🏠
Working from home
  • 00:21 (UTC -03:00)
View GitHub Profile
@rodrigogs
rodrigogs / async-functions.js
Created April 27, 2017 16:25
Working with JavaScript async functions
const promises = require('./promises');
/** Retrieve data */
async function getInfo() {
const country = await promises.getCountry();
const time = await promises.getTime();
const weather = await promises.getWeather();
return { country, time, weather };
@luzfcb
luzfcb / configurar_pyenv.md
Last active July 14, 2024 01:25
instalar pyenv no ubuntu
@axelpale
axelpale / combinations.js
Last active July 7, 2023 10:37
JavaScript functions to calculate combinations of elements in Array.
/**
* Copyright 2012 Akseli Palén.
* Created 2012-07-15.
* Licensed under the MIT license.
*
* <license>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,