Skip to content

Instantly share code, notes, and snippets.

View hugoaboud's full-sized avatar

Hugo Aboud hugoaboud

  • WatchGuard
  • Pindamonhangaba, SP
View GitHub Profile
@lzhoucs
lzhoucs / vuetify.min.css
Last active April 28, 2023 08:48
Vuetify v1.2.3-modified.3 local build
/*!
* Vuetify v1.2.3-modified.3
* Forged by John Leider
* Released under the MIT License.
*/@-webkit-keyframes shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}@keyframes shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.black{background-color:#000!important;border-color:#000!important}.black--text{caret-color:#000!important;color:#000!important}.white{background-color:#fff!important;border-color:#fff!important}.white--text{caret-color:#fff!important;color:#fff!important}.transparent{background-color:transparent!important;border-color:transparent!important}.transparent--text{caret-color:transparent!important;color:transparent!important}.red{background-color:#f44336!important;border-color:#f44336!important}.red--text{caret-color:#f44336!important;color:#f44336!important}.red.lighten-5{background-color:#ffebee!important;border-color:#ffebee!important}.red--text.text--lighten-5{caret-color:#ffebee!important;color:#ffebee!important}.red.lighten-4{background-color:
@alarrosa14
alarrosa14 / artnet_middleware.py
Last active August 2, 2022 13:30
A Python ArtNet packet receiver that broadcasts its payload.
import sys
from socket import (socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_REUSEADDR,
SO_BROADCAST)
from struct import pack, unpack
UDP_IP = "127.0.0.1"
UDP_PORT = 6454
@mathebox
mathebox / color_conversion.py
Created April 12, 2015 16:47
Python methods to convert colors between RGB, HSV and HSL
import math
def rgb_to_hsv(r, g, b):
r = float(r)
g = float(g)
b = float(b)
high = max(r, g, b)
low = min(r, g, b)
h, s, v = high, high, high