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
const MAX_PLAYERS = 4; | |
const haveEvents = 'ongamepadconnected' in window; | |
const controllers = {}; | |
// D-PAD AND BUTTONS | |
// (U, D, L, R, B, A, START) | |
const buttons = { | |
U : 12, | |
D : 13, | |
L : 14, | |
R : 15, |
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 game; | |
window.onload = function() { | |
var isMobile = navigator.userAgent.indexOf("Mobile"); | |
if (isMobile == -1) { | |
game = new Phaser.Game(480, 640, Phaser.AUTO, "ph_game"); | |
} else { | |
game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.AUTO, "ph_game"); | |
} | |
game.state.add("StateMain", StateMain); |
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
/** | |
* A special function that runs when the spreadsheet is open, used to add a | |
* custom menu to the spreadsheet. | |
*/ | |
function onOpen() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
var menuItems = [ | |
{name: '📧 Send pending unlocks...', functionName: 'sendEmailAndUnlockNextTest'} | |
]; | |
spreadsheet.addMenu('🔬 Baylor', menuItems); |
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
- developer mode (hold ESC, refresh, and power buttons till insert USB screen comes up, then hit CTRL + D) | |
- download crouton | |
sudo sh ~/Downloads/crouton -t xiwi -n code-oss-chroot | |
sudo enter-chroot -n code-oss-chroot sudo -S sh -c "$( curl -s https://code.headmelted.com/installers/apt.sh )" | |
(if "unauthenticated packages" error:) | |
sudo enter-chroot -n code-oss-chroot sudo -S sh -c "$( curl -s https://gist.githubusercontent.com/easierbycode/ea16d448e32608abfb35589399bb4b10/raw/c98815b6a9ad3cabcf99f90a66fa1391f97f940a/apt.sh )" | |
sudo echo "alias code=\"sudo startxiwi -n code-oss-chroot code-oss\"" >> ~/.bashrc |
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
rm -rf dist/app dist/assets/images dist/maps dist/scripts dist/styles && gulp build && cd dist && firebase deploy && cd .. && gulp serve |
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
[{ | |
"title": "Practice", | |
"practice": true, | |
"position": 1, | |
"random_questions": false, | |
"questions": [{ | |
"position": null, | |
"question": "money", | |
"answer": "duck", | |
"language": "en" |
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
[{ | |
"title": "Practice", | |
"practice": true, | |
"position": 1, | |
"random_questions": false, | |
"questions": [{ | |
"position": null, | |
"question": "صديق", | |
"answer": "منزل", | |
"language": "ar" |
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
// practice | |
[ | |
["money", "duck"], | |
["friend", "house"], | |
["clean", "socks"] | |
] | |
// non-practice | |
[ | |
["night", "fast"], |
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 getParameterByName( name ){ | |
// name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
// var regexS = "[\\?&]"+name+"=([^&#]*)", | |
// regex = new RegExp( regexS ), | |
// results = regex.exec( window.location.href ); | |
// if( results == null ){ | |
// return ""; | |
// } else{ | |
// return decodeURIComponent(results[1].replace(/\+/g, " ")); | |
// } |