Skip to content

Instantly share code, notes, and snippets.

View Mario-paul's full-sized avatar

Mario Cardenas Mario-paul

View GitHub Profile
name: Increment Version
on:
workflow_dispatch:
inputs:
versionIncrementType:
description: 'The type of increment'
type: choice
required: true
options:
- MAJOR
@Mario-paul
Mario-paul / redshift.conf
Last active January 30, 2022 13:18
Configuration file for redshift. Place this file in ~/.config/ for it to be read by redshift. Set command 'redshift-gtk' in startup applications to boot on login; setting any parameters with said command will override this file's settings. NOTE: This conf file is from Redshift v1.12. If this is outdated, get the latest version in the official he…
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5700
temp-night=2500
; Disable the smooth fade between temperatures when Redshift starts and stops.
; 0 will cause an immediate change between screen temperatures.
; 1 will gradually apply the new screen temperature over a couple of seconds.
fade=1

logo_ironhack_blue 7

General guidelines for labs/assignments

In this document, you will find all the steps you should follow when working on the labs (in the prework and during the bootcamp).

Step 1: Fork the repository

The majority of time, you will have to start the process with forking. Just a quick reminder on what is the process of forking.

@wojteklu
wojteklu / clean_code.md
Last active July 5, 2024 12:41
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@swankjesse
swankjesse / HostSelectionInterceptor.java
Last active May 17, 2024 19:11
This OkHttp application interceptor will replace the destination hostname in the request URL.
import java.io.IOException;
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
/** An interceptor that allows runtime changes to the URL hostname. */
public final class HostSelectionInterceptor implements Interceptor {
private volatile String host;