View index.html
<html>
<head>
<style>
html, body { width: 100%; height: 100%; }
body { margin: 0; overflow: hidden; }
canvas { width: 100%; height: 100%; }
</style>
</head>
<body>
<script src='https://cdnjs.cloudflare.com/ajax/libs/three.js/88/three.min.js'></script>
View create_job_files.py
import os
import subprocess
job_template = '''
#!/bin/bash
#$ -N $$$TASK$$$
#$ -t 1-200:1
#$ -r y
#$ -o logs/$$$TASK$$$.log
source ~/.bash_profile
View index.html
<html>
<head>
<style>
html, body { width: 100%; height: 100%; background: #000; color: #fff; }
body { margin: 0; overflow: hidden; }
canvas { width: 100%; height: 100%; }
</style>
</head>
<body>
View TrackballControls.js
/**
* @author Eberhard Graether / http://egraether.com/
* @author Mark Lundin / http://mark-lundin.com
* @author Simone Manini / http://daron1337.github.io
* @author Luca Antiga / http://lantiga.github.io
*/
THREE.TrackballControls = function ( object, domElement ) {
var _this = this;
View controller.js
(function() {
/**
* Buffalo Classic USB Gamepad button ids:
* 0: B (yellow)
* 1: A (red)
* 2: Y (green)
* 3: X (blue)
* 4,6: left trigger (top left)
* 5,7: right trigger (top right)
View game.js
// game state
var hitPlatform,
score = 0,
scoreText;
/** args:
* [0] canvas width in px
* [1] canvas height in px
* [2] render context {Phaser.CANVAS, Phaser.WEBGL, or Phaser.AUTO}
**/
View index.html
<html>
<head>
<style>
html, body { width: 100%; height: 100%; }
body { margin: 0; overflow: hidden; }
canvas { width: 100%; height: 100%; }
</style>
</head>
<body>
<script src='https://cdnjs.cloudflare.com/ajax/libs/three.js/88/three.min.js'></script>
View index.html
<DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>title</title>
<style>
* {
margin: 0;
padding: 0;
}
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>title</title>
<style>
* {
margin: 0;
padding: 0;
}
View get.js
function get(url, handleSuccess, handleErr, handleProgress) {
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == XMLHttpRequest.DONE) {
if (xmlhttp.status === 200) {
if (handleSuccess) handleSuccess(xmlhttp.responseText)
} else {
if (handleErr) handleErr(xmlhttp)
}
};