View creality_cr20pro.def.json
{ | |
"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", |
View ios_detect.h
#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)) |
View raspi-init.sh
# 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. |
View BNRTimeBlock.h
CGFloat BNRTimeBlock (void (^block)(void)); |