https://github.com/meetecho/janus-gateway Note: might try this next time: https://snapcraft.io/install/janus-gateway/debian
aptitude install libmicrohttpd-dev libjansson-dev \
libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
just a quick save of some files thrown together when working through the ethernauts problems |
// WIP | |
function iOS() { | |
return [ | |
'iPad Simulator', | |
'iPhone Simulator', | |
'iPod Simulator', | |
'iPad', | |
'iPhone', | |
'iPod' | |
].includes(navigator.platform) |
NOTE: You will need at least Redis 2.1.6 to use the ZREVRANGEBYSCORE method. | |
Add players to HIGHSCORES table: | |
fossil:~ dczarnecki$ redis-cli | |
redis> zadd HIGHSCORES 1 player_1 | |
(integer) 1 | |
redis> zadd HIGHSCORES 2 player_2 | |
(integer) 1 | |
redis> zadd HIGHSCORES 3 player_3 |
https://github.com/meetecho/janus-gateway Note: might try this next time: https://snapcraft.io/install/janus-gateway/debian
aptitude install libmicrohttpd-dev libjansson-dev \
libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
me@T460-Debian10:~/code/forks/janus-gateway$ sudo ./janus -F /opt/janus/etc/janus/ | |
[sudo] password for me: | |
Janus commit: d1d044ce781272715ef621abe9f7ac2f658842e6 | |
Compiled on: Wed 19 Aug 2020 08:21:15 PM EDT | |
Logger plugins folder: /home/me/code/forks/janus-gateway/loggers | |
--------------------------------------------------- | |
Starting Meetecho Janus (WebRTC Server) v0.10.5 | |
--------------------------------------------------- |
{ | |
init: function(){ | |
// console.warn("this way, it will be possible to have mismatched boards for the two players with stones hanging off the invisible edge. should be getting this from other player, along with other room info, but putting that off for now. :/") | |
// hoverXY = (gameState.iAm === "Wte" ? [-1,9] : [19,9]); // let's try hanging them off the center side instead of corner, where it can be hard to see. | |
resetHoverStone() // untested, but should be fine; it says reset, but same code as initial set | |
//Code for goban shape | |
if (!this.data.boardSize) { | |
console.warn("no lines, skipping init for a tick") | |
return | |
} |
// key is measurement, value is number needed of that measurement | |
var barLengths = { | |
"20": 16, // standard + wide dining window height | |
"25.5": 10, // standard windows width | |
"37.5": 4, // long dining room windows width | |
"21.5": 2, // bathroom window width, again, needs updating because of external framing | |
"6": 2, // bathroom window height, probably needs to be increased a bit because we're framing externally | |
"31": 2, // door window height, needs verification | |
}; |
// if($scope.$storage.currentUser.hiddenGroups || $scope.$storage.currentUser.requiredGroups) { // WE HAVE EITHER REQUIREALL OR BLACK LIST FILTERING ENABLED. | |
// if($scope.$storage.currentUser.requireGroupsOn) { // WHITE LIST | |
// // has required groups ON | |
// if(item.groups) { | |
// // pin has some groups | |
// var notInAllRequiredGroups = requiredCount < $scope.$storage.currentUser.requiredGroups.length && $scope.$storage.currentUser.requiredGroups.length > 0 | |
// if(notInAllRequiredGroups) { | |
// pinShown = false; | |
// $scope.hiddenPins.push(item) | |
// conditionCount['("No", 1, "pin has groups + not in all required groups")']++ // |
<html> | |
<body ng-app="mapmycustomersApp" ng-strict-di> | |
<!-- FB Analytics for Web --> | |
<script> | |
// stuff | |
</script> | |
<!--[if lte IE 8]> | |
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> |
<html> | |
<body ng-app="mapmycustomersApp" ng-strict-di> | |
<!-- FB Analytics for Web --> | |
<script> | |
// stuff | |
</script> | |
<!--[if lte IE 8]> | |
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> |