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 inPolygon(point, polygon) { | |
//randomize polygon point order | |
var from = 10 ** (polygon.length - 1); | |
var to = (10 ** polygon.length) - 1; | |
var perms = []; //permutations (4 x 3 x 2 = 24 permutations of four coordinates) | |
for (var i = from; i <= to; i++) { | |
var nstr = i.toString(); | |
var good = true; | |
for (var c = 1; c <= polygon.length; c++) { | |
var cnt = 0; |
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 piptest() { | |
var polygon = []; | |
polygon.push([5080.14,2378.49]); | |
polygon.push([6625.77,2667.42]); | |
polygon.push([6147.5,3235.12]); | |
var point = [5700.34,2568.26]; | |
console.log(polygon, point); |
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
{ | |
"version": 120, | |
"GeneralData": | |
{ | |
"disableBaseDamage": false, | |
"disableContainerDamage": false, | |
"disableRespawnDialog": false | |
}, | |
"PlayerData": | |
{ |
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
{ | |
"version": 120, | |
"GeneralData": | |
{ | |
"disableBaseDamage": false, | |
"disableContainerDamage": false, | |
"disableRespawnDialog": false | |
}, | |
"PlayerData": | |
{ |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<types> | |
<type name="ACOGOptic"> | |
<nominal>9</nominal> | |
<lifetime>14400</lifetime> | |
<restock>1800</restock> | |
<min>6</min> | |
<quantmin>-1</quantmin> | |
<quantmax>-1</quantmax> | |
<cost>100</cost> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<types> | |
<type name="ACOGOptic"> | |
<nominal>10</nominal> | |
<lifetime>14400</lifetime> | |
<restock>1800</restock> | |
<min>6</min> | |
<quantmin>-1</quantmin> | |
<quantmax>-1</quantmax> | |
<cost>100</cost> |
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/bash | |
#begin endless loop | |
while true;do | |
#set screen size variables from arguments | |
x=$1 | |
y=$2 | |
x2=x/2 | |
y2=y/2 |