This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Creality CR20 Pro", | |
"version": 2, | |
"inherits": "fdmprinter", | |
"metadata": { | |
"visible": true, | |
"author": "Michael Wildermuth", | |
"manufacturer": "Creality3D", | |
"file_formats": "text/x-gcode", | |
"preferred_quality_type": "draft", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) | |
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) | |
#define IS_RETINA ([[UIScreen mainScreen] scale] >= 2.0) | |
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width) | |
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height) | |
#define SCREEN_MAX_LENGTH (MAX(SCREEN_WIDTH, SCREEN_HEIGHT)) | |
#define SCREEN_MIN_LENGTH (MIN(SCREEN_WIDTH, SCREEN_HEIGHT)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Non-interactive command-line equivalents to raspi-config | |
# These are not guaranteed to work under all circumstances. | |
# I use them in a fabric script to do unattended setup of a | |
# Raspberry Pi immediately after having booted up a NOOBS | |
# and installed Raspbian. | |
# | |
# 1. Install NOOBS | |
# 2. When the config screen comes up, hit TAB TAB RETURN to exit from it | |
# 3. Type 'sudo service ssh start' at the command line (no quotes). | |
# 4. (Optional) copy a public key to the pi account on the pi. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGFloat BNRTimeBlock (void (^block)(void)); |