Skip to content

Instantly share code, notes, and snippets.

View naoisegolden's full-sized avatar

Naoise Golden Santos naoisegolden

  • Barcelona, Spain
View GitHub Profile
@naoisegolden
naoisegolden / chatgpt-4-output.md
Created November 19, 2023 23:04
Oficina virtual o domiciliación social de empresas en Barcelona y Sant Cugat

Empresas que ofrecen el servicio de oficina virtual en Barcelona y Vallès Occidental

Nombre Ubicación Precio Fuente
Fidem Sant Cugat del Vallès 22€/mes https://fidem.es/domiciliacion-sociedades-en-centro-de-negocios/
CREC Barcelona, Sabadell 25€/mes https://crec.cc/empresas/
Cacplus Barcelona 25€/mes - 50€/mes https://www.cacplus.com/es/domiciliacion-de-empresas-barcelona/
Mitre Workspace Barcelona 25€/mes https://mitreworkspace.com/oficina-virtual-barcelona-domiciliacion-empresas/
New Work Coworking Barcelona 26€/mes https://newworkcoworking.com/oficina-virtual/
SC Trade Center Barcelona, Sant Cugat del Vallès 48€/mes - 103€/mes https://sctradecenter.es/espacios-trabajo-coworking-barcelona-sant-cugat/
@naoisegolden
naoisegolden / chatgpt-4-output.md
Created November 19, 2023 21:37
Comparison table for establishing a small limited liability company in Spain, Ireland, and Estonia

Here's a comparison table for establishing a small limited liability company in Spain, Ireland, and Estonia:

Country Taxes Establishing Costs Recurring Costs Minimum Employee Structure Employment Status of the Sole Shareholder and Administrator
Spain Corporate tax rate is generally 25% €1,500 for the preparation of all documents and approximately €500 for the notary, the registration, and the activation of the company. The minimum share capital for a Limited Liability Company (LLC) is €3,000 Between €3,000 and €5,000 should be calculated Requires at least one shareholder. The company must appoint an administrator Normally, the figure of Administrator is not a figure to which a fixed remuneration is assigned, but a salary can be established if desired
Ireland Two tax rates: 12.5% for trading income and 25% for expected trades and n
@naoisegolden
naoisegolden / chatgpt-4-output.md
Last active November 21, 2023 09:42
Table of fermented foods
Fermented Food Optimal Temperature (°C) Ferment Agents Fermentation Time Preparation Instructions
Sourdough 20-25 Wild yeast, lactic acid bacteria 8-12 hours (or longer) Mix flour and water, allow to ferment with wild yeast and bacteria.
Beer (ale) 18-24 Brewer's yeast Several days to weeks Malt grains, boil with hops, cool, ferment with brewer's yeast.
Kimchi 18-22 Lactic acid bacteria, wild yeast 3-14 days Salt and ferment vegetables (often Napa
@naoisegolden
naoisegolden / good-practices-concepts.md
Last active May 14, 2020 18:18
Some tips on Javascript programming

Good practices general concepts

Abstraction and Encapsulation

Abstraction is a basic concept in programming: means isolating code so that the complexity is on a separate layer. You can go deeper into abstraction layers to get to the gritty complexity, or you can go up abstraction levels so that the code is more simple. The abstraction principle is a principle from which most other principles stem. https://en.wikipedia.org/wiki/Abstraction_principle_(computer_programming)

Encapsulation may seem similar to abstraction but it's not the same: encapsulation means isolating code so that some of it is out of reach, only used internally. Examples of this are object-oriented programming or libraries that expose APIs. https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)

Keybase proof

I hereby claim:

  • I am naoisegolden on github.
  • I am naoise (https://keybase.io/naoise) on keybase.
  • I have a public key ASCveG5P1NX4HSjbiqcxm8KrtFYcW4DGc9irRdLgq8z02wo

To claim this, I am signing this object:

@naoisegolden
naoisegolden / nextjs.md
Last active September 30, 2023 07:48
SSR and Code-splitting in Stuart FE apps

Next.js compared to our and other solutions

Figuring out how Next.js handles code splitting and routing so that we can decide if it fits our needs or if we can take inspiration from it for our own internal solution.

SSR

SSR with Next.js

There is no special documentation about Next.js SSR, since it's supported out of the box and handled transparently.

@naoisegolden
naoisegolden / pre-push
Created May 18, 2015 16:02
Git pre-push hook to prevent force pushing to branches
#!/bin/bash
# Prevents force-pushing to master
# Based on: https://gist.github.com/pixelhandler/5718585#comment-1390358
# Install:
# cd path/to/git/repo
# curl -fL -o .git/hooks/pre-push https://gist.githubusercontent.com/naoisegolden/96628dc63a2aab514880/raw/pre-push
# chmod +x .git/hooks/pre-push
BRANCH=`git rev-parse --abbrev-ref HEAD`
var mySingleton = (function () {
// Instance stores a reference to the Singleton
var instance;
function init() {
// Singleton
// Private methods and variables