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
/** | |
* Neatly output results of an array into a nice table | |
* API: https://developer.mozilla.org/en-US/docs/Web/API/Console/table | |
*/ | |
console.table([ | |
{ name: 'Max', age: 24 }, | |
{ name: 'Susan', age: 52 }, | |
{ name: 'John', age: 33 } | |
]); |
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
<form action="mail.php" method="post" enctype="multipart/form-data"> | |
<input name="sender_name" placeholder="Your Name..."/> | |
<input name="sender_email" placeholder="Your email..."/> | |
<textarea placeholder="Your Message..." name="sender_message"> | |
<div class="captcha_wrapper"> | |
<div class="g-recaptcha" data-sitekey="YOUR_KEY"></div> | |
</div> | |
<button type="submit" id="send_message">Send Message!</button> | |
</form> |
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 | |
$sender_name = stripslashes($_POST["sender_name"]); | |
$sender_email = stripslashes($_POST["sender_email"]); | |
$sender_message = stripslashes($_POST["sender_message"]); | |
$response = $_POST["g-recaptcha-response"]; | |
$url = 'https://www.google.com/recaptcha/api/siteverify'; | |
$data = array( | |
'secret' => 'YOUR_SECRET', | |
'response' => $_POST["g-recaptcha-response"] |
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
const msg = new SpeechSynthesisUtterance('hello, max'); | |
window.speechSynthesis.speak(msg); |
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 | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, 'https://api.groupme.com/v3/bots/post'); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
//REPLACE YOUR_BOT_ID with BOT_ID FROM GROUPME | |
curl_setopt($ch, CURLOPT_POSTFIELDS, "text=TESTING&bot_id=YOUR_BOT_ID"); | |
curl_exec($ch); | |
curl_close($ch); |
NewerOlder