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
function qs( cls ) | |
{ | |
return document.querySelector( cls ); | |
} | |
function qsa( cls ) | |
{ | |
return document.querySelectorAll( cls ); | |
} |
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
<link rel="icon" href="src/favicon.ico"> | |
<link rel="icon" href="src/favicon.svg" type="image/svg+xml"> |
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 | |
header( 'Access-Control-Allow-Origin: *' ); | |
$received = file_get_contents( 'php://input' ); | |
echo $received; | |
// Ref: https://www.php.net/manual/en/reserved.variables.post.php#125651 |
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 | |
header( 'Access-Control-Allow-Origin: *' ); | |
$received = file_get_contents( 'php://input' ); | |
echo $received; | |
// Ref: https://www.php.net/manual/en/reserved.variables.post.php#125651 |
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
.wp-caption | |
{ | |
margin-bottom: 1.5em; | |
max-width: 100%; | |
} | |
.wp-caption-text | |
{ | |
text-align: center; | |
} | |
.sticky |
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
// Create an Element | |
let ele = document.createElement( 'div' ); // Replace 'div' with required element | |
// Insert Text | |
ele.innerText = 'Hello World!'; | |
// or | |
ele.innerHTML = 'Hello World!'; | |
// or, not recommended | |
let textNode = document.createTextNode( 'Hello World!' ); // Create a text node | |
ele.appendChild( textNode ); |
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 "SD.h" | |
#include "SPI.h" | |
#include "TMRpcm.h" | |
#define SD_ChipSelectPin 10 | |
TMRpcm tmrpcm; | |
void setup() | |
{ |
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 | |
localStorage.setItem( 'name', 'Smith' ); | |
// Retrieve | |
console.log( localStorage.getItem( 'name' ) ); |
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
if ( typeof( Storage ) !== 'undefined' ) | |
{ | |
console.log( 'Storage Exists!' ); | |
} | |
else | |
{ | |
console.log( 'Storage doesn\'t Exists!' ); | |
} |
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 | |
$to = '[email protected]'; | |
$subject = 'Test mail'; | |
$message = 'Hello! This is a simple email message.'; | |
$from = '[email protected]'; | |
$headers = 'From: ' . $from; | |
mail( $to, $subject, $message, $headers ); | |
echo 'Mail Sent.'; |