Skip to content

Instantly share code, notes, and snippets.

View rigao-alexandre's full-sized avatar

Alexandre Rigão rigao-alexandre

View GitHub Profile
@rigao-alexandre
rigao-alexandre / compare.js
Last active April 13, 2024 10:55
Stardew Valley - Loved gifts
// function compareByQuantity(left, right) {
// return left.persons.length - right.persons.length
// }
// function compareByName(left, right) {
// return left.gift.localeCompare(right.gift);
// }
function compare(left, right) {
const len = right.persons.length - left.persons.length; // DESC
@rigao-alexandre
rigao-alexandre / 1º - Variáveis
Last active April 28, 2018 12:17
Postman + OAuth2 Password & Refresh Token Grant Type
Auth:URL:http://auth.some-domain.com/token
Auth:LastError:
Auth:ClientID:some-client
Auth:ClientSecret:some-secret
Auth:Username:some-username
Auth:Password:some-password
Auth:AccessToken:
Auth:AccessTokenExpiresIn:Mon, 01 Jan 2018 00:20:00 GMT
Auth:RefreshToken: