This file contains hidden or 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
var askNicely = fuction(person, mm) { | |
if (person == mm) { | |
console.log('The real one') | |
} | |
} |
This file contains hidden or 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
-- | |
-- 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`) |
This file contains hidden or 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 | |
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."); | |
} |
This file contains hidden or 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 | |
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); | |
This file contains hidden or 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 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); | |
} |
This file contains hidden or 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
$(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"); |
This file contains hidden or 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 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> |
This file contains hidden or 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
202 CLS | |
203 GOTO 202 | |
END |
This file contains hidden or 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
int main(void) { | |
int a[1]; | |
return a[1]; | |
} |
This file contains hidden or 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
#define SIZE 4 | |
int main(void) { | |
int m[SIZE][SIZE]; | |
return 0; | |
} |