Skip to content

Instantly share code, notes, and snippets.

@alex-d-boyd
alex-d-boyd / cut_csv.py
Created February 17, 2022 07:37
Cutting Fields From A CSV File <Programming Praxis>
#! /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
@alex-d-boyd
alex-d-boyd / SCANsat_cargo_patches.cfg
Created April 10, 2021 08:17
Module Manager Config File to add EVA construction and cargo storage to SCANsat parts.
// 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
{
@alex-d-boyd
alex-d-boyd / tz_convert.py
Created September 20, 2020 02:13
Simple script to convert between time zones.
#! /usr/bin/env python3
"""Simple timezone converter"""
import argparse
import datetime
import re
import sys
TZS = [
@alex-d-boyd
alex-d-boyd / buzz_parts.json
Created January 31, 2020 10:43
Buzzsentence and buzzphrase generator
{
"sentences": [
[
"In particular,",
"On the other hand,",
"However,",
"Similarly,",
"As a resultant implication,",
"In this regard,",
"Based on integral subsystem considerations,",
#! /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)