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
| #! /usr/bin/env python3 | |
| """ | |
| usage: firing_solution bearing range course speed torpedo_speed [max_range] | |
| Determine a firing solution (launch bearing). | |
| positional arguments: | |
| bearing compass bearing to target (degrees) | |
| range range to target (nm) |
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
| #! /usr/bin/env python3 | |
| # Cutting Fields From A CSV File | |
| # Programming Praxis 2021-12-07 | |
| # https://programmingpraxis.com/2021/12/07/cutting-fields-from-a-csv-file/ | |
| import argparse | |
| import csv | |
| import sys |
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
| // KSP Module Manager Config File | |
| // Add Cargo part status to SCANsat parts | |
| // Author: Alex Boyd (AlexinTokyo) | |
| // Part: SCAN Been There Done That®, Mass: 0.02 | |
| @PART[scansat-exomars-1]:FINAL | |
| { | |
| MODULE | |
| { |
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
| #! /usr/bin/env python3 | |
| """Simple timezone converter""" | |
| import argparse | |
| import datetime | |
| import re | |
| import sys | |
| TZS = [ |
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
| { | |
| "sentences": [ | |
| [ | |
| "In particular,", | |
| "On the other hand,", | |
| "However,", | |
| "Similarly,", | |
| "As a resultant implication,", | |
| "In this regard,", | |
| "Based on integral subsystem considerations,", |
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
| #! /usr/bin/env python3 | |
| import random | |
| random.seed() | |
| def frankly(): | |
| words = ['frank', 'dear', 'give', 'damn'] | |
| random.shuffle(words) | |
| words[0] = words[0].capitalize() | |
| return "{}ly, my {}, I don't {} a {}!".format(*words) |