Skip to content

Instantly share code, notes, and snippets.

View wvides's full-sized avatar
:octocat:
Immutable is the way

Walter Vides wvides

:octocat:
Immutable is the way
  • Berlin, Germany
View GitHub Profile
@RichiH
RichiH / gist:f2ffb824d428d8ca0c7c40cd62022b56
Last active July 24, 2023 13:06
Prometheus relabelling to get rid of port number
============================================
============================================
============================================
This does what it should:
regex: (.+?)(:80)?
Also see https://golang.org/pkg/regexp/syntax/
@sanchitgangwar
sanchitgangwar / snake.py
Created March 22, 2012 12:38
Snakes Game using Python
# SNAKES GAME
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
curses.initscr()
win = curses.newwin(20, 60, 0, 0)