Skip to content

Instantly share code, notes, and snippets.

View jonmarkgo's full-sized avatar
🎓
preparing the MLH Fellowship

Jonathan Gottfried jonmarkgo

🎓
preparing the MLH Fellowship
View GitHub Profile
var askNicely = fuction(person, mm) {
if (person == mm) {
console.log('The real one')
}
}
--
-- Table structure for table `numbers`
--
CREATE TABLE IF NOT EXISTS `numbers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`phone_number` varchar(50) DEFAULT NULL,
`verification_code` int(11) DEFAULT NULL,
`verified` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
<?php
require("Services/Twilio.php");
require("database.php");
$response = new Services_Twilio_Twiml();
if (empty($_POST["Digits"])) {
$gather = $response->gather(array('numDigits' => 6));
$gather->say("Please enter your verification code.");
}
<?php
require("Services/Twilio.php");
require("database.php");
// require POST request
if ($_SERVER['REQUEST_METHOD'] != "POST") die;
// generate "random" 6-digit verification code
$code = rand(100000, 999999);
function checkStatus() {
$.post("status.php", { phone_number : $("#phone_number").val() },
function(data) { updateStatus(data.status); }, "json");
}
function updateStatus(current) {
if (current === "unverified") {
$("#status").append(".");
setTimeout(checkStatus, 3000);
}
$(document).ready(function(){
$("#enter_number").submit(function(e) {
e.preventDefault();
initiateCall();
});
});
function initiateCall() {
$.post("call.php", { phone_number : $("#phone_number").val() },
function(data) { showCodeForm(data.verification_code); }, "json");
<form id="enter_number">
<p>Enter your phone number:</p>
<p><input type="text" name="phone_number" id="phone_number" /></p>
<p><input type="submit" name="submit" value="Verify" /></p>
</form>
<div id="verify_code" style="display: none;">
<p>Calling you now.</p>
<p>When prompted, enter the verification code:</p>
<h1 id="verification_code"></h1>
202 CLS
203 GOTO 202
END
int main(void) {
int a[1];
return a[1];
}
#define SIZE 4
int main(void) {
int m[SIZE][SIZE];
return 0;
}