Skip to content

Instantly share code, notes, and snippets.

@ronaldluc
ronaldluc / V100.py
Created July 17, 2021 18:28
V100 ANSI 3-bit 8 color codes python dictionary
_VT100Colors = {n: f'\033[{i+30}m ' for i, n in enumerate([
"black", "red", "green", "yellow", "blue", "magenta",
"cyan", "white", "magic", "default"
])}
@ronaldluc
ronaldluc / keybase.md
Created August 25, 2020 11:35
keybase.md

Keybase proof

I hereby claim:

  • I am ronaldluc on github.
  • I am ronaldluc (https://keybase.io/ronaldluc) on keybase.
  • I have a public key ASCLMyH0Zlr5z0nN4HjOLhM5pOBm0IOtrTU31qm_5ii_dAo

To claim this, I am signing this object:

@ronaldluc
ronaldluc / languages_map.py
Last active October 12, 2019 21:32
Mapping between country names, country 2 digit codes and languages spoken (codes) in the countries
# Contains:
# country2langs = {'us': 'en', 'brazil': 'pt', ... }
# country_code2langs = {'US': 'en', ... }
# country_name2langs = {'Czech Republic': 'cs', ... }
country2langs = {'ad': 'ca',
'ae': 'ar',
'af': 'fa, ps',
'afghanistan': 'fa, ps',
'ag': 'en',
@ronaldluc
ronaldluc / victor_violates_GDPR.js
Created July 31, 2019 15:21
victor_violates_GDPR
// ==UserScript==
// @name One-click add All LinkedIn People
// @description One-click add all LinkedIn "Recommended for you" people in the My Network page
// @namespace nickpapoutsis
// @author nickpapoutsis
// @copyright 2019, nickpapoutsis (https://openuserjs.org/users/nickpapoutsis)
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A6EL76QADA2YY&source=url
// @license MIT
// @include https://bioprocessintl.com/*
// @version 0.8
@ronaldluc
ronaldluc / first_test.py
Last active July 25, 2019 13:10
First gist test
rand = 0
for i in range(20):
print(i)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.