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
// store informatino about each pin mapping | |
typedef struct mapping_ { | |
int switchPin; // the switch pin | |
int relayPin; // the relay pin | |
int lastSwitchState; // the last recorded switch state | |
int currentRelayState; // the current state of the relay | |
unsigned long lastDebounceTime; // the last time the switch state changed | |
} mapping_t; | |
// switch pin to relay pin mapping |
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
; set a specific animation | |
Run, C:\Ultracade\LEDBlinky\LEDBlinky.exe GameBoy.lwax |
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
; Script to load Dragon Ball FighterZ. | |
; | |
; This game has multiple executables and first loads anti cheat before running the main executable. | |
; BigBox loses track of the game as the initial executable exits, this mean you get taken back to | |
; BigBox and the game continues to load in the backgroud. | |
; Start the game | |
Run, steam://rungameid/678950 | |
; Wait for the anti cheat to exit. |
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
## RetroArch keybind config template | |
## Can be copypasted into an existing config, appended with --apppendconfig, used as a core or game override, or used with the include directive in an existing config | |
# Keyboard input. Will recognize letters (a to z) and the following special keys (where kp_ | |
# is for keypad keys): | |
# | |
# left, right, up, down, enter, kp_enter, tab, insert, del, end, home, | |
# rshift, shift, ctrl, alt, space, escape, add, subtract, kp_plus, kp_minus, | |
# f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, | |
# num0, num1, num2, num3, num4, num5, num6, num7, num8, num9, pageup, pagedown, |
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
## RetroArch keybind config template | |
## Can be copypasted into an existing config, appended with --apppendconfig, used as a core or game override, or used with the include directive in an existing config | |
# Keyboard input. Will recognize letters (a to z) and the following special keys (where kp_ | |
# is for keypad keys): | |
# | |
# left, right, up, down, enter, kp_enter, tab, insert, del, end, home, | |
# rshift, shift, ctrl, alt, space, escape, add, subtract, kp_plus, kp_minus, | |
# f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, | |
# num0, num1, num2, num3, num4, num5, num6, num7, num8, num9, pageup, pagedown, |
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
// For FlutterNativeImage, see: https://github.com/btastic/flutter_native_image | |
// Takes the absolute file path | |
Future<String> resizeImage(String filePath) async { | |
ImageProperties properties = await FlutterNativeImage.getImageProperties(filePath); | |
int imageWidth; | |
int imageHeight; | |
switch (properties.orientation) { | |
case ImageOrientation.rotate90: |
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
<?php | |
class TumblrStorage | |
{ | |
public function get(): array | |
{ | |
// code... | |
} | |
} |
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
location / { | |
if ($http_origin ~* (https?://(localhost(:[0-9]+)?|([a-z0-9.]+)?example\.co\.uk)$) ) { | |
add_header 'Access-Control-Allow-Origin' "$http_origin" always; | |
add_header 'Access-Control-Allow-Credentials' 'true' always; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; | |
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With' always; | |
} | |
if ($request_method = 'OPTIONS') { | |
add_header 'Content-Type' 'text/plain charset=UTF-8' always; |