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
blueprint: | |
name: Create Group | |
description: | | |
# Create Group Blueprint | |
This blueprint creates a group with either static or dynamic members. | |
It has two main functions to add members | |
- Dynamically include multiple members based on a common string in their object ID's. (```Dynamic Include List```) | |
- Or statically add individual members. (```Static Entities To Add```) |
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
/* Tests compile constants in GCC */ | |
#define STR_HELPER(x) #x | |
#define STR(x) STR_HELPER(x) | |
#if defined(__STDC_VERSION__) | |
#pragma message STR(__STDC_VERSION__) | |
#else | |
#pragma message "__STDC_VERSION__ not defined" | |
#endif |
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
# matching from https://www.wunderground.com/weather/api/d/docs?d=resources/country-to-iso-matching | |
# | |
# example: | |
# >>>> langcode = iso_to_wu['DE'] # Germany | |
# 'DL' | |
iso_to_wu = { | |
'AF': 'AH', | |
'AL': 'AB', | |
'DZ': 'AL', |
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
#include <conio.h> | |
char arrowkey_input() { | |
char input_ch = _getch(); | |
// detect arrow keys (idea from http://stackoverflow.com/questions/10463201/getch-and-arrow-codes/11432632#11432632) | |
if (input_ch == -32) { // prefix for arrow keys | |
switch (_getch()) { // the real value | |
case 72: // up | |
return 'u'; |