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
@echo off | |
if "%1"=="" ( | |
echo Please provide the input file as the first argument. | |
goto :eof | |
) | |
if "%2"=="" ( | |
echo Please provide the scale as the third argument. | |
goto :eof | |
) |
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
--return the target angle needed between segments to join them via a semi-circle (radius=pi) | |
local pi=math.pi | |
local deg=math.deg | |
local function CalculateAngle(SegmentLength,DistanceBetweenPoints) | |
local NSegments=(pi*DistanceBetweenPoints/2)/SegmentLength | |
local SegmentAngle=pi/NSegments | |
return deg(SegmentAngle) | |
end |
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
local numberFloatNumberRounding = 5 --5 decimal places | |
local LightingProperties = { | |
'Ambient', | |
'Brightness', | |
'ClockTime', | |
'ColorShift_Bottom', | |
'ColorShift_Top', | |
'EnvironmentDiffuseScale', | |
'EnvironmentSpecularScale', |
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
local http_request = require('./http.lua') | |
local API = {} | |
local API_KEY = require('./apikey.lua') | |
local API_URL = 'https://api.strafes.net/v1/' | |
local API_HEADER = { {'Content-Type','application/json'}, { 'api-key', API_KEY } } | |
local t=tostring | |
local r=function(n,nd) return tonumber(string.format('%.' .. (nd or 0) .. 'f', n)) end | |
local GAMES={BHOP=1,SURF=2,[1]='bhop',[2]='surf'} |