Skip to content

Instantly share code, notes, and snippets.

local modDirectory = g_currentModDirectory
function loadHelplines()
self.helpLineManager:loadFromXML(Utils.getFilename("helpLine.xml", modDirectory))
end
function load(mission)
loadHelplines()
end
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}')
@kbrandwijk
kbrandwijk / notifier.js
Created August 18, 2021 06:45
Autocode Expo Slack Notifier
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)
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
{
"expo": {
"plugins": [
[
"./withStarPrinter.js",
{
"minSdkVersion": 23,
"bluetoothAlwaysPermission": "My permission description",
"localNetworkUsagePermission": "My other permission description"
}