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
use { Vessel } from ksp::vessel | |
use { CONSOLE } from ksp::console | |
use { current_time, sleep, wait_until } from ksp::game | |
use { create_resource_transfer, FlowDirection } from ksp::resource | |
use { format } from core::str | |
use { max, min, clamp } from core::math | |
// Balance Methane, Oxidizer and Hydrogen; trigger dry stages | |
fn balance_up_tanks(vessel: Vessel) -> Result<Unit, string> = { | |
CONSOLE.clear() |
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
use { Vessel, AutopilotMode } from ksp::vessel | |
use { trigger_staging } from std::staging | |
use { current_time, sleep, wait_until } from ksp::game | |
use { acos_deg, max, min, clamp } from core::math | |
use { CONSOLE } from ksp::console | |
use { estimate_burn_time, exec_next_node } from std::vac | |
use { circularize_orbit_at, circularize_orbit } from std::maneuvers | |
use { add_time_series, remove_all_time_series } from ksp::telemetry | |
use { angle_axis} from ksp::math | |
use { format } from core::str |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <wiringPi.h> | |
#include <softPwm.h> | |
#define PIN 10 | |
#define RANGE 100 |
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
const Rx = require('rxjs'); // Did this in node using `npm install rxjs` | |
// -- Our fake async function | |
const fakeAsync = (input) => { | |
return new Promise((resolve, reject) => { | |
console.log(`Start: ${input}`); | |
setTimeout(() => { | |
console.log(`Finish: ${input}`); | |
resolve(`Processed ${input}`); | |
}, Math.random()*1500+100); |
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
# No-IP automatic Dynamic DNS update | |
#--------------- Change Values in this section to match your setup ------------------ | |
# No-IP User account info | |
:local noipuser "[email protected]" | |
:local noippass "password1" | |
# Set the hostname or label of network to be updated. | |
# Hostnames with spaces are unsupported. Replace the value in the quotations below with your host names. |