Skip to content

Instantly share code, notes, and snippets.

View acemir's full-sized avatar
🥁
Tocando o terror 🔊🎵🎶

Acemir Sousa Mendes acemir

🥁
Tocando o terror 🔊🎵🎶
View GitHub Profile
@vwrs
vwrs / unity-webgl-server.py
Created March 12, 2023 07:48
A simple python server for a Unity WebGL build
import sys
from http.server import SimpleHTTPRequestHandler, HTTPServer
class GzipRequestHandler(SimpleHTTPRequestHandler):
'''HTTPRequestHandler for gzip files'''
def end_headers(self):
'''Set Content-Encoding: gzip for gzipped files'''
if self.path.endswith('.gz'):
@grymmjack
grymmjack / ANSI.md
Created September 13, 2022 22:00 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@JackDesBwa
JackDesBwa / ascii.rst
Last active October 20, 2023 12:25
A stereoscopic ASCII art

SBS

o===============================================================================oo===============================================================================o
|        .                    .                    .                    .       ||         .                    .                    .                    .      |
|        :                    :                    :                    :       ||         :                    :                    :                    :      |
|        :    .               :    .               :    .               :       ||         :    .               :    .               :    .               :      |
|       .'   .   .           .'   .   .           .'   .   .           .'   .   ||        .'   .   .           .'   .   .           .'   .   .           .'   .  |
@Alexufo
Alexufo / simple-https-python-server.py
Last active August 17, 2025 10:04
Simple Python https server example py 3.10+ ( multithread, wasm, gzip )
import http.server
import http.cookiejar
import io
import socket
from http import HTTPStatus
import ssl
import os
import zlib
server_address = ('0.0.0.0', 4443)
@sindresorhus
sindresorhus / esm-package.md
Last active October 27, 2025 18:09
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@helton
helton / _credits.md
Last active November 12, 2024 21:23
Charadas
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active September 18, 2025 06:58
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@marcedwards
marcedwards / loadingspinner.pde
Created May 30, 2018 02:25
A loading spinner with 6 dots
// A loading spinner with 6 dots.
// By @marcedwards from @bjango.
//
// Pretty messy and hacked together, but it works. ¯\_(ツ)_/¯
// Created using Processing 3.3.7.
float scaler = 0.24 * 4; // Scale the entire design.
float scalerb = 4; // Scale the entire design more.
int frame = 0;
anonymous
anonymous / visual-crypto.js
Created January 12, 2018 21:16
Visual cryptography using JavaScript
const fs = require('fs');
const PNG = require('pngjs').PNG;
/*
Utilities
=========
*/
const PNG_OPTIONS = {
GRAYSCALE_AND_ALPHA: 4,
@JBlond
JBlond / bash-colors.md
Last active October 28, 2025 19:34 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple