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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#submit").click(function(){ | |
var postInputVal = $("#postinput").val(); | |
$("#postecho").val(postInputVal); | |
console.log("OK!"); | |
}); |
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
#!/usr/bin/python | |
import re | |
file=open("HAWAII_GOV_readout_ANSI.txt","r+") | |
wordcount={} | |
for word in file.read().split(): | |
#remove alphanumeric characters and underscores | |
word = re.sub('[^\w]', '', word) |
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 | |
if(isset($_POST['submit'])) { | |
$file = "data.json"; | |
$arr = array( | |
'name' => $_POST['name'], | |
'email' => $_POST['email'], | |
'phone' => $_POST['cell'], | |
'birthday' => $_POST['dob'], | |
'years' => $_POST['study'] | |
); |
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
// Pseudo Code for Data Treasure Hunting | |
// NASA's SpaceAppsChallenge 2015 | |
// Pseudo Code Derived from: | |
// MESSAGE POSTED IN NASA STARTER KIT | |
// Posted by Alon Peled, Ph.D.(Harvard University) | |
// FILE: NASA_starter_kit/xl/sharedStrings.xml | |
Dear NASA Data Treasure Hunt Participant, | |
1. Develop system to discover new keywords |
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 | |
echo"Enter the ISBN number: "; | |
$isbn = trim(fgets(STDIN)); | |
$isbn_length = strlen($isbn); //length | |
if (10 != $isbn_length) //ISBN length = 10? | |
{ echo "Not Valid"; | |
exit; | |
} | |
$arr1 = str_split($isbn); // to array | |
$m0 = $arr1[0] * 10; |
NewerOlder