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 modDirectory = g_currentModDirectory | |
function loadHelplines() | |
self.helpLineManager:loadFromXML(Utils.getFilename("helpLine.xml", modDirectory)) | |
end | |
function load(mission) | |
loadHelplines() | |
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
import pyproj | |
from math import sqrt | |
lon = -108.334368 | |
lat = 39.126934 | |
size = 2000 | |
endlon, endlat, _ = pyproj.Geod(ellps='WGS84').fwd(lon, lat, 135, sqrt(size**2 + size**2)) | |
print (f'{endlon:.6f}, {endlat:.6f}') |
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 lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN}); | |
const {createHmac} = await import('crypto'); | |
const safeCompare = require('safe-compare'); | |
// Expo request signature check | |
const hmac = createHmac('sha1', process.env.SECRET_WEBHOOK_KEY); | |
hmac.update(Buffer.from(JSON.stringify(context.params))); | |
const hash = `sha1=${hmac.digest('hex')}`; | |
console.log('context.params', context.params) |
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
Object.defineProperty(exports, "__esModule", { value: true }); | |
const configPlugins = require("@expo/config-plugins"); | |
const withAppDelegate = (config) => { //refactor this part? | |
return configPlugins.withAppDelegate(config, async config => { | |
let res = config.modResults | |
// ROLLBAR import |
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
{ | |
"expo": { | |
"plugins": [ | |
[ | |
"./withStarPrinter.js", | |
{ | |
"minSdkVersion": 23, | |
"bluetoothAlwaysPermission": "My permission description", | |
"localNetworkUsagePermission": "My other permission description" | |
} |
OlderNewer