Skip to content

Instantly share code, notes, and snippets.

View Ferfalk's full-sized avatar

Fernando A. H. Falkiewicz Ferfalk

  • Curitiba, PR, Brasil
View GitHub Profile
@Ferfalk
Ferfalk / vscode-titlebar-colors.md
Last active May 30, 2025 21:02
VSCode titlebar colors

Color Options for titleBar.activeForeground and titleBar.inactiveForeground

Based on the "Default Dark Modern" theme, here are color options to customize the active and inactive title bar of your workspaces in VS Code.

Shades of Red and Pink:

Active Color (titleBar.activeForeground) Inactive Color (titleBar.inactiveForeground)
#FF4500 #FF4500 #FF450080
#DC143C #DC143C #DC143C80
@Ferfalk
Ferfalk / custom.css
Last active November 17, 2023 04:24
Twitch Alert OBS Custom CSS font change
@import url('https://fonts.googleapis.com/css?family=Comfortaa');
.alert_text,.alert_secondary-text,.alert_text-accent {
font-family: 'Comfortaa' !important;
font-weight: bold !important;
}
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Point;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.ViewDataBinding;
public class ScaleUtils {
private ScaleUtils() {
}
public static double linearMap(double source, double sourceMin, double sourceMax, double targetMin, double targetMax) {
return ((source - sourceMin) / (sourceMax - sourceMin)) * (targetMax - targetMin) + targetMin;
}
// public static double linearMap(double source, double sourceMin, double sourceMax, double targetMin, double targetMax) {
// return normalizedToScale(normalizeScale(source, sourceMin, sourceMax), targetMin, targetMax);
@Ferfalk
Ferfalk / SimpleAnimationUtils.java
Last active February 27, 2019 21:26
Android SimpleAnimationUtils
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.graphics.Point;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v4.view.animation.FastOutSlowInInterpolator;