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
//spr_EnemyDead is a speparate sprite that contains the image of the enemy rotated slightly. | |
//Trying to get enemy once hit, to switch to spr_EnemyDead and then fall off screen, at the moment, as soon | |
//as player bounces off head he switches back to alive sprite. | |
//Enemy Movement | |
hsp = dir * movespeed; | |
vsp += grav; | |
sprite_index = spr_enemy | |
//Horizontal Collision |
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
import socket | |
import sys | |
HOST = "127.0.0.1" | |
PORT = 30000 | |
try: | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
print "Socket created" | |
except socket.error as 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
<html> | |
<head> | |
<title>communicate with device</title> | |
<style type=text/css> | |
.btn { | |
border-radius: 5px; | |
height: :50px; | |
width: 150px; | |
font-family: Ubuntu; | |
text-align: center; |
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 | |
session_start() | |
?> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="style.css" | |
<link href="index.html"> | |
<link href="displaydatatest.php"> | |
<script> |
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 | |
#session_start(); | |
?> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="style.css" | |
<link href="index.html"> | |
<link href="displaydatatest.php"> |
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 init() { | |
document.getElementById("Submit").addEventListener('click', ajax); | |
} | |
function ajax() { | |
console.log("Function started"); | |
request = new XMLHttpRequest(); | |
request.open('GET', 'getData.php', true); | |
request.onload = function() { |
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
var assert = require('assert'); | |
function validateEmail(email) { | |
var regex = /.*@.*\..*/; | |
if (email.match(regex) !== null) { | |
return true; | |
} else { | |
return false; | |
} | |
} |
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
var assert = require('assert'); | |
function validateEmail(email) { | |
var regex = /.*@.*\..*/; | |
return email.match(regex); | |
} | |
describe('Email Validation', function() { | |
describe('Types', function() { | |
it('should be a function', function() { |
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
var assert = require('assert'); | |
function validateEmail(email) { | |
var regex = /.*@.*\..*/; | |
return email.match(regex); | |
} | |
describe('Email Validation', function() { | |
describe('Types', function() { | |
it('should be a function', function() { |
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
var form = document.getElementById('registration'); | |
form.addEventlistener('submit', function() { | |
if (check()) { | |
return true; | |
} else { | |
return false; | |
} | |
}); | |
function check(){ |
OlderNewer