Skip to content

Instantly share code, notes, and snippets.

View carloscasalar's full-sized avatar
💜
Helping make cities a better place to live at @cabify

Carlos Castillo carloscasalar

💜
Helping make cities a better place to live at @cabify
View GitHub Profile
@carloscasalar
carloscasalar / index.js
Created March 21, 2023 09:10
Simple plain node setup with module imports
import {otherConst} from "./other-file.js";
import someData from './some-data.json' assert { type: "json" }
console.log('hola');
console.log(otherConst);
const {some} = someData;
console.log(some);
@carloscasalar
carloscasalar / Steps_to_Terminal_Enlightenment_on_a_Mac.md
Created January 14, 2023 13:04 — forked from GLMeece/Steps_to_Terminal_Enlightenment_on_a_Mac.md
Steps to Terminal Enlightenment on a Mac (tweaking your terminal for fun and profit)
@carloscasalar
carloscasalar / fibonacci_with_cache.exs
Last active November 6, 2022 12:04
Elixir tips and links
defmodule FibonacciWithCache do
def fib(0), do: 0
def fib(1), do: 1
def fib(n) do
cache_pid = init_cache()
value = fib(cache_pid, n)
clean_cache(cache_pid)
value
@carloscasalar
carloscasalar / dbx_sample.go
Last active June 19, 2021 06:39
Golang dbx sample code
package main
// Playground https://play.golang.org/p/0dmqcE813l
import (
"database/sql"
"fmt"
"log"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
@carloscasalar
carloscasalar / github-emoji-codes.md
Last active February 3, 2021 10:38 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

A small set of emojis with examples

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
@carloscasalar
carloscasalar / tipsDocker.md
Last active February 11, 2020 16:01
Docker tips

Docker tips

Links

Commands

  • To show only running containers use: docker ps
  • To show all containers use: docker ps -a
  • Delete container: docker rm -v container-id
  • Lista images: docker images
@carloscasalar
carloscasalar / tipsStorybook.md
Last active January 27, 2020 17:58
Storybook links and tips
@carloscasalar
carloscasalar / tipsGitlabCI.md
Created January 22, 2020 11:58
Gitlab CI / CD links and tips

Gitlab CI / CD tips

  • Make a task be automatically retried => add retry: 2
  • Allow a task to fail => add allow_failure: true
  • Make a task manually actionable => add when: manual