Skip to content

Instantly share code, notes, and snippets.

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

Gastón Fournier gastonfournier

🏠
Working from home
View GitHub Profile
@gastonfournier
gastonfournier / test.js
Created April 23, 2024 08:08
Unleash roll up&down consistency test
// you can run unleash locally with https://docs.getunleash.io/quickstart#i-want-to-run-unleash-locally
// create a toggle named flag-1 and add the rollout strategy sticky on userId
// then play around rolling up and down.
// Note: to run this you'll need to have an npm project (npm init) and add unleash dependency (npm i unleash-client)
import { initialize } from 'unleash-client';
const unleash = initialize({
url: 'http://localhost:4242',
appName: 'my-node-name',
refreshInterval: 200,

Keybase proof

I hereby claim:

  • I am gastonfournier on github.
  • I am gastonfournier (https://keybase.io/gastonfournier) on keybase.
  • I have a public key ASCHVtwo-Mlp91SbHLOHuRo8uuvLfbwzCx2p51KJd2zLzwo

To claim this, I am signing this object:

import javax.money.MonetaryAmount;
import javax.money.format.AmountFormatQueryBuilder;
import javax.money.format.MonetaryAmountFormat;
import javax.money.format.MonetaryFormats;
import org.javamoney.moneta.Money;
import org.javamoney.moneta.format.CurrencyStyle;
import org.junit.jupiter.api.Test;
import java.util.Locale;

How to calculate your hourly rate as a freelancer?

Many people struggle with this question. Some just try to make as much as a full-time employee makes (and ignore that they won't be able to bill as many days). Others follow tips on startup related websites that suggest to ask for 20% to 50% more than an salary would yield (and ignore the additional risk and expenses they have).

Below you will find some numbers to help you calculate how high your hourly or daily rate should be.

Your yearly income should be higher than an average salary

  • You take more risk than full time employees, phases without income are likely