Skip to content

Instantly share code, notes, and snippets.

View dlennox24's full-sized avatar

Daniel Lennox dlennox24

  • Xentity Corp
  • Thornton, Colorado
View GitHub Profile
@dlennox24
dlennox24 / 3-opt.txt
Last active April 3, 2017 00:09
3-opt sudo
do{
minChange = 0;
for(i=0;i<nodes-3;i++){
for(j=i+2;j<nodes-1;j++){
for(k=j+1;k<nodes-2;k++){
base = calcDist(i,i+1) + calcDist(j,j+1) + calcDist(k,k+1);
// 2-opt
opt2_0 = calcDist(i,i+1) + calcDist(j,k) + calcDist(j+1,k+1);
opt2_1 = calcDist(j,j+1) + calcDist(k,i) + calcDist(k+1,i+1);
opt2_2 = calcDist(k,k+1) + calcDist(i,j) + calcDist(i+1,j+1);
{
"locations": [{
"id": "DES0",
"name": "Warsaw",
"lat": 52.172992,
"lng": 20.979097,
"elevation": "14",
"municipality": "Wake Island",
"region": "Wake Island",
"country": "United States Minor Outlying Islands",
{
"endpoint": "destination",
"data": "query"
"filter_airportSize": "Small, Medium, Large",
"filter_municipality": "",
"filter_region": "",
"filter_country": "",
"filter_continent": ""
}
validateVersion = event => {
let helperText = this.state.versionTextField.helperText;
let error = false;
if (!(/^\d+.\d+.\d+$/g.test(event.target.value))) {
error = true;
helperText = defaults.versionTextField.helperText;
} else {
let currentVersionArray = this.props.file.versions[0].version.split('.');
currentVersionArray[0] = parseInt(currentVersionArray[0], 10);
currentVersionArray[1] = parseInt(currentVersionArray[1], 10);
@dlennox24
dlennox24 / .bashrc
Last active December 7, 2022 23:11
Configuring Hyper.js with zsh on Windows 11 Linux Subsystem for Node.js development
# ...
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# Launch Zsh
if [ -t 1 ]; then
exec zsh
fi
# If not running interactively, don't do anything
// Line 640
if(this.getField("isTaxExempt") !== "Exempt") {
if(this.getField("ShipMeth") === "UPS") {
event.value = this.getField("UPSCalcTax").value;
} else {
event.value = this.getField("LocCalcTax").value;
}
} else {
event.value = 0;
}
@dlennox24
dlennox24 / cloudSettings
Last active February 20, 2019 21:11
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-02-20T21:11:18.810Z","extensionVersion":"v3.2.5"}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dlennox24
dlennox24 / mods-list.txt
Last active August 6, 2023 20:47
ATM8 Mod Version Tracker
AE2-Things-1.1.1.jar
AE2WTLib-12.9.5.jar
AEAdditions-1.19.2-4.0.3.jar
AEInfinityBooster-1.19.2-1.2.0+11.jar
AIOTBotania-1.19.2-3.0.1.jar
Ad-Astra-Giselle-Addon-forge-1.19.2-1.16.jar
AdditionalEnchantedMiner-1.19.2-1192.2.0.jar
AdvancedPeripherals-1.19.2-0.7.29r.jar
AdvancementPlaques-1.19.2-1.4.7.jar
AllTheCompressed-1.19.2-2.0.0.jar