Skip to content

Instantly share code, notes, and snippets.

View samvbeckmann's full-sized avatar

Sam Beckmann samvbeckmann

View GitHub Profile
@samvbeckmann
samvbeckmann / mods.md
Created May 11, 2016 21:33
KSP Mod List
  • [x] Science! xScience 4.17
  • Alcubierre Warp Drive (Stand-alone) AlcubierreStandalone 0.4.2.1
  • Astroniki Sunflare for Scatterer AstronikiSunflareforScatterer 1.1
  • B9 Part Switch B9PartSwitch v1.1.4
  • Chatterer Chatterer 0.9.8
  • Community Resource Pack CommunityResourcePack 0.5.1.1
  • Community Tech Tree CommunityTechTree 2.4
  • Contract Configurator ContractConfigurator 1.11.5
  • Contract Pack: Anomaly Surveyor ContractConfigurator-AnomalySurveyor 1.4.3
  • Crowd Sourced Science CrowdSourcedScience v3.0.2
@samvbeckmann
samvbeckmann / shadowrun-characters.md
Created March 19, 2016 03:16
Shadowrun Characters

Potential Shadowrun Characters

With my character skating on the brink of death last session, I figured it's high time to build some backups, especially with what I've learned about the Shadowrun universe since I've started playing. Thoughts on any of these? Think one would fit into our campaign better than others?

Valkyrie (Human)

Valkyrie is an adrenaline junkie, but she makes up for it by being a damn good driver. She grew up on the streets of Seattle, and knows every backroad and cop-free alleyway in the city. A smuggler by trade, most of her work involves being low-profile, but she’s not adverse to hot-wiring a new ride for a quick Nuyen or two. Although not exactly a fan of getting into firefights, Val is no stranger to using a submachine gun, even while driving. No, especially while driving. She's crass at times, but that comes with the territory of growing up on the wrong side of Seattle. All told, she's developed quite a skill-set and reputation in the Seattle underground for some of her more

@samvbeckmann
samvbeckmann / DigitalClock.pld
Last active November 30, 2015 22:04
Digital Clock Lab
Name DigitalClock ;
PartNo 01 ;
Date 11/30/2015 ;
Revision 01 ;
Designer Sam Beckmann ;
Company University of Tulsa ;
Assembly None ;
Location Rayzor Hall ;
Device p22v10 ;
@samvbeckmann
samvbeckmann / prisoners.md
Last active May 14, 2016 06:16
Prisoner's Switch Problem

Prisoners and Switches

Detailed below is the problem and solution of the Prisoners and Switches problem. Do not read past the problem if you don't want to have the solution spoiled for you!

Problem

A warden of a high-sescurity prison meets with 23 new prisoners when they arrive. He gives them a deal:

If all of you can solve my puzzle, I'll let you all go. If you attempt the puzzle but don't solve it, howeever, you all will be fed to the alligators! I'll tell you the puzzle, and you may meet today to plan a strategy. But after today, you will be in isolated cells and will have no communication with one another.

@samvbeckmann
samvbeckmann / prisoners.md
Last active November 23, 2015 21:24
Potential Solutions to the prisoners and switches problem.

Prisoner's Dilemma

Rules

  • n prisoners
  • All prisoners but #1 will flip B to the "on" position if they see it in the "off" position, however, they will only ever do this once.
    • If B is in the "on" position, or a prisoner has already flipped B, he or she flips A.
  • Prisoner #1 will flip B to the "off" positon if B is "on". If this happens, #1 increments an internal counter.
    • If B is "off", #1 flips A, and does not increment the internal counter.
  • When prisoner #1's counter reaches (n-1), he declares the experiment to be over, having concluded that all other prisoners must have been in the room at least once.
Name BankSignBeckmann ;
PartNo 00 ;
Date 11/05/2015 ;
Revision 01 ;
Designer Sam Beckmann ;
Company University of Tulsa ;
Assembly None ;
Location Rayzor Hall ;
Device p22v10 ;
@samvbeckmann
samvbeckmann / matrixwriteup.md
Created November 13, 2015 20:42
Matrix Keyboard Writeup

Matrix Keypad Writeup

###Goal The goal of the Matrix Keypad project was to parse data from the keypad to determine which key was being pressed, then write the key to the LCD display.

###Design Design Flowchart

###Challenges Faced A short desicription of some of the challenges faced with completing this project, and how I went about solving them.

  • Clearing the LCD: I found no elegant way to clear the LCD from the API. To get around this, I simply flooded the LCD with 32 blank spaces, then set the current LCD's position to the first position.
@samvbeckmann
samvbeckmann / bankSignBeckmann
Created November 6, 2015 01:22
Bank Sign Code
Name BankSignBeckmann ;
PartNo 00 ;
Date 11/05/2015 ;
Revision 01 ;
Designer Sam Beckmann ;
Company University of Tulsa ;
Assembly None ;
Location Rayzor Hall ;
Device p22v10 ;
#include <stdio.h>
#include <stdlib.h>
/**
* Converts a speed in knots at an altitude to a mach number
*/
double convertToMach(double alt, double speed)
{
if (alt <= 10000)
return speed / (661 - (alt / 10000) * 23);

Flight Program Design

Design documentation for the Flight Program homework assignment.
Author: Sam Beckmann

Requirements

  1. The program shall read a file of data, encoded as big-endian IEEE floats.
  2. The program shall output the data to a csv file, each line containing four values:
  3. Time since file start in seconds.
  4. Aircraft altitude in feet.
  5. Aircraft altitude in knots.