(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <?php | |
| // SPECIFY USB PORT TO USE | |
| $usb_comPort = "COM4"; | |
| switch($_POST) | |
| { | |
| case isset($_POST['submitOn']): | |
| exec("ECHO 1 > $usb_comPort"); // Turn On LED 1 | |
| break; | |
| case isset($_POST['submitOff']): |
| <?php | |
| // SPECIFY USB PORT TO USE | |
| $usb_comPort = "COM4"; | |
| switch($_POST) | |
| { | |
| case isset($_POST['submitOn']): | |
| exec("ECHO 1 > $usb_comPort"); // Turn On LED 1 | |
| break; | |
| case isset($_POST['submitOff']): |
| /* | |
| Script by @REPTILEHAUS | |
| by Paddy O'Sullivan | |
| */ | |
| // Assign each of our input pins to an integer variable | |
| int LED_one = 13; | |
| int LED_two = 12; | |
| int LED_three = 11; | |
| int LED_four = 10; |
| <?php | |
| function contactform7_before_send_mail( $form_to_DB ) { | |
| global $wpdb; | |
| $form_to_DB = WPCF7_Submission::get_instance(); | |
| if ( $form_to_DB ) | |
| $formData = $form_to_DB->get_posted_data(); |
| <?php | |
| session_start(); | |
| ini_set('display_errors',1); | |
| ini_set('display_startup_errors',1); | |
| error_reporting(-1); | |
| define('APP_ID', '337348378287384'); | |
| define('APP_SECRET', '83d7gd238r74r8w7827565863864fds8'); | |
| define('REDIRECT_URL', 'http://yoursite.com/test.php'); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <?php | |
| global $wpdb; | |
| require('/var/www/yourwebsitesroot/wp-blog-header.php'); | |
| // require ( ABSPATH . 'wp-admin/includes/image.php' ); | |
| $images = $wpdb->get_results( | |
| "SELECT ID | |
| FROM $wpdb->posts |
I hereby claim:
To claim this, I am signing this object: