Skip to content

Instantly share code, notes, and snippets.

View Kogoro's full-sized avatar

Christopher So Kogoro

  • Braunschweig, Germany
View GitHub Profile
#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: '',