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
'use strict'; | |
(function (){ | |
const RADIANS_IN_A_CIRCLE = 2 * Math.PI; | |
const ONE_DEGREE = RADIANS_IN_A_CIRCLE / 360; | |
let lookup = []; | |
for (let index = 0; index < 360; ++index) { | |
lookup[index] = Math.sin(index * ONE_DEGREE); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/phaser@3.15.1/dist/phaser-arcade-physics.min.js"></script> | |
</head> | |
<body> | |
<script> | |
var config = { | |
type: Phaser.AUTO, |
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
taskkill /IM iisexpress.exe /F | |
taskkill /im msbuild.exe /f /t | |
taskkill /im VBCSCompiler.exe /f /t |
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 () { | |
'use strict'; | |
pinjector | |
.module('starCastle') | |
.factory( | |
'objectPool', | |
[ | |
objectPool | |
]); |
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
'use strict'; // jshint ignore:line | |
var pinjector = {}; | |
(function () { | |
pinjector.module = module; | |
var modules = {}; | |
function module(name) { |
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 _play(effect) { | |
if (!areSfxEnabledFlag || !effect) { | |
return; | |
} | |
var buffer = effect.buffer; | |
if (!buffer) { | |
return; | |
} |
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 _initialiseSoundEffects() { | |
_loadSounds(soundConfiguration.sounds, true); | |
_loadSounds(soundConfiguration.music, false); | |
} | |
function _loadSounds(sounds, areSfx) { | |
for (var soundIndex = 0, soundCount = sounds.length; soundIndex < soundCount; ++soundIndex) { | |
var sound = sounds[soundIndex]; | |
if (areSfx) { |
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 () { | |
'use strict'; | |
pinjector | |
.module('starCastle') | |
.factory( | |
'soundConfiguration', | |
[ | |
'baseAsteroidsStarcastleSoundConfiguration', | |
soundConfiguration |
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
SELECT TOP 30 -- You can alter or ditch this if needs be | |
d.[TransactionID], | |
MIN(d.[StartTime]) AS StartTime, | |
MAX( | |
CASE | |
WHEN d.[EndTime] IS NULL | |
OR d.[StartTime] > d.[EndTime] THEN d.[StartTime] | |
ELSE d.[EndTime] | |
END) AS EndTime, | |
DATEDIFF( |
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
#! /bin/sh | |
# Other deployment actions here. Want to install (or bounce) service last. | |
if [ -f /etc/systemd/system/arcadely.service ]; then | |
sudo systemctl stop arcadely.service | |
sudo systemctl disable arcadely.service | |
else | |
sudo \cp -f ./arcadely.service /etc/systemd/system/arcadely.service | |
fi |