Skip to content

Instantly share code, notes, and snippets.

Most active GitHub users in Thailand

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 29 Jul 2015 01:52:41 GMT till Fri, 29 Jul 2016 01:52:41 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 6)
@fnky
fnky / ANSI.md
Last active July 4, 2025 11:03
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@arielweinberger
arielweinberger / strong-password-regex.md
Last active April 30, 2025 09:54
Strong password Regular Expression - NestJS Course
  • Passwords will contain at least 1 upper case letter
  • Passwords will contain at least 1 lower case letter
  • Passwords will contain at least 1 number or special character
  • There is no length validation (min, max) in this regex!

Regular expression for JavaScript:

/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/
@av1d
av1d / piano.py
Created February 22, 2022 17:50
Simple 1 octave piano in Python with live input
import numpy as np
import simpleaudio as sa
import os, sys, termios, time, tty
# Key mapping:
# W E T I U
# A S D F G H J K
#
# Which translates to:
# C#D# F#G#A#