Skip to content

Instantly share code, notes, and snippets.

View alexcraviotto's full-sized avatar
🍀
Focusing

Alex Craviotto alexcraviotto

🍀
Focusing
View GitHub Profile
@stifskere
stifskere / C# Tutorial.cs
Last active June 4, 2024 20:06
Un tutorial de C# en español.
/*
C# Tutorial © 2024 by Esteve Autet Alexe is licensed under
Creative Commons Attribution-ShareAlike 4.0 International.
To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/4.0/
*/
// LOS SIGUIENTES WARNING ESTAN DESHABILITADOS POR QUE ESTO ES UNA GUIA.
using System.Collections;
using System.Runtime.InteropServices;
@Miguel07Alm
Miguel07Alm / create_postman_collection_nestjs.py
Last active March 3, 2024 18:19
It creates automatically your postman collection based in NestJS endpoints
import json
# Absolute path of your file .ts where the endpoints are located (example: '/home/dev/project/app/driver/src/driver.controller.ts')
file_path = ''
postman_collection = {
"info": {
"name": "NestJS Endpoints Collection",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": []
}
@mariocj89
mariocj89 / python-logging.md
Last active June 16, 2024 16:51
Understanding logging in Python

Logging trees

Introduction

When applications are running in production, they become black boxes that need to be traced and monitored. One of the simplest, yet main, ways to do so is logging. Logging allows us - at the time we develop our software - to instruct the program to emit information while the system is running that will be useful for us and our sysadmins.

@forest
forest / git-workflow.md
Created February 22, 2016 18:15
Git Feature Branch Workflow

We subscribe to the Git Featrue Branch workflow, briefly described in that link.

In practice, it works as follows:

FEATURE DEVELOPMENT

Steps to Follow:

  1. Start with an updated local development branch -- by checking out the dev branch and pulling changes:
    git checkout development
    git pull origin development
@frankkienl
frankkienl / Countries.java
Created June 24, 2015 19:13
List of countries
/*
The Spotify API call, 'top-tracks' requires a ISO 3166-1 alpha-2 country code
//https://developer.spotify.com/web-api/get-artists-top-tracks/
//https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
//https://www.spotify.com/nl/legal/end-user-agreement/plain/#s19
//EU is not included in this list, as it generates this error:
{
"error": {
"status": 400,
"message": "Invalid country code"