Skip to content

Instantly share code, notes, and snippets.

View Kogoro's full-sized avatar

Christopher So Kogoro

  • Braunschweig, Germany
View GitHub Profile
@Kogoro
Kogoro / collection.txt
Last active May 31, 2024 10:28
AWTRIX 3 RTTTL Collection
//This is a collection of RTTTLs that can be used with any RTTTL player. Foremost it is for the Ulanzi TC001 LED Matrix.
//Onlineplayer: https://adamonsoon.github.io/rtttl-play/
Original1:d=4,o=5,b=140:16e,16g,16a,16c
//ESPHOME - https://esphome.io/components/rtttl.html
two_short:d=4,o=5,b=100:16e6,16e6
long:d=1,o=5,b=100:e6
siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e
#define CONFIGURATION_H
#define CONFIGURATION_H_VERSION 020000
#define STRING_CONFIG_H_AUTHOR (printedsolid.com, CR-10S)
#define SHOW_BOOTSCREEN
#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION
#define STRING_SPLASH_LINE2 WEBSITE_URL
#undef SHOW_CUSTOM_BOOTSCREEN
#define CUSTOM_STATUS_SCREEN_IMAGE
#define SERIAL_PORT 0
#undef SERIAL_PORT_2 -1
04171f1b0d8f2a6c6539fda09a78530206801107dd15c3de76333889d26a6abe57a90ab8b492cdd89391309a6719fc0fad5a0f81c488ab9dcce2706bf9a0f61886;msoftware
@Kogoro
Kogoro / app.py
Created May 5, 2016 11:29
Gets the Material Design Icons CSS from materialdesignicons.com and formats it to a snippets file ready for use in Visual Studio Code (vscode)
import urllib.request
import urllib.error
import re
import json
p = re.compile('\.mdi-(.*?):before')
with urllib.request.urlopen('http://cdn.materialdesignicons.com/1.5.54/css/materialdesignicons.min.css') as response:
html = response.read()
@Kogoro
Kogoro / contact.js
Last active January 28, 2016 02:50
Contact JSON with portable contacts draft in mind
// http://portablecontacts.net/draft-spec.html#structure
var contact = {
userID: '',
displayName: '',
name: {
formatted: '',
familyName: '',
givenName: '',
middleName: '',
honorificPrefix: '',