Skip to content

Instantly share code, notes, and snippets.

View balmacefa's full-sized avatar
👋

Fabián balmaceda rescia balmacefa

👋
View GitHub Profile
html[data-theme="dark"] {
--theme-border-color: var(--theme-elevation-150);
--theme-success-50: var(--color-success-50);
--theme-success-100: var(--color-success-100);
--theme-success-150: var(--color-success-150);
--theme-success-200: var(--color-success-200);
--theme-success-250: var(--color-success-250);
--theme-success-300: var(--color-success-300);
@balmacefa
balmacefa / ExceptionThread.py
Created August 24, 2021 20:57
Python Thread Class, catch any exception in the Thread and raise to the caller
import sys
import threading
# Custom Thread Class
# catch any exception in the Thread and raise to the caller
class ExceptionThread(threading.Thread):
def __init__(self, *args, **kwargs):
super(ExceptionThread, self).__init__(*args, **kwargs)
self._exc = None
@balmacefa
balmacefa / install_OhMyZSH_PowerLevel10k.sh
Last active February 17, 2026 09:19
install OhMyZsh + powerlevel10k + plugins in ["debian","ubuntu" ,"linuxmint","pop","arch","manjaro""fedora","centos","rhel","solus"]
#!/bin/bash
# Created by hmike
# https://gitlab.com/whitemike00/scripts/-/blob/master/install_zsh-omz.sh
############################ INSTALL <----------------------------*******************
# curl https://gist.githubusercontent.com/balmacefa/87818833c9ada45af09b5f8ac0b179a7/raw/908705adea903a1d34e999241fcf1e39c3c3f172/install_OhMyZSH_PowerLevel10k.sh | sh
# mod by: @balmacefa
set -o errexit
@balmacefa
balmacefa / Advanced Markdown Tricks.md
Created December 8, 2020 01:45 — forked from DrSensor/Advanced Markdown Tricks.md
Advanced Markdown Tricks

Repository

What Will I Learn?

In general, you will learn some markdown tricks combined with standard HTML tags. In more details what you will learn:

  • Hide-show content
  • Writing codeblocks inside codeblocks
  • Combining and using italic, bold, superscript, subscript, and/or strikethrough
  • Quoting long sentence (using nested blockquotes)
@balmacefa
balmacefa / README.md
Created December 8, 2020 01:14 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@balmacefa
balmacefa / FrameLoopHook.js
Created May 15, 2020 02:47
React Frame Loop Hook
import {useRef, useEffect} from 'react'
export const useFrameLoop = (callback) => {
const requestID = useRef();
const previousTime = useRef();
const loop = time => {
if (previousTime.current !== undefined) {
const deltaTime = time - previousTime.current;