Skip to content

Instantly share code, notes, and snippets.

View jaxlo's full-sized avatar
🌏
Pale Blue Dot

Jackson Lohman jaxlo

🌏
Pale Blue Dot
View GitHub Profile
@jaxlo
jaxlo / socket.py
Last active February 18, 2018 14:37
Posted on reddit to get help with python socket programming -- (This includes the server and client in one file)
import socket
NetworkPort = 59281
class NetworkClient:#run on ML /remote computer
#global NetworkHost, NetworkPort
def __init__(self, sock=None):
if sock is None:
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
else:
@jaxlo
jaxlo / rocket_electronics.ino
Created March 15, 2022 19:52
rocket_electronics.ino
#include <TinyGPSPlus.h>
#include <SoftwareSerial.h>
// SD Logger
// ESP32 pin - wire color - SD card pin
//---------------------------------
// P4 - green - GRN
// P0 - yellow - RXI
// P2 - orange - TX0
@jaxlo
jaxlo / stack.py
Last active March 19, 2023 03:25
A Python stack implementation (Linked list)
# This stack was programmed by Jackson Lohman for part of a CS2420 assignment
class Stack:
def __init__(self):
self.head = None
def push(self, item):
""" Push an item onto the stack. Size increases by 1 """
if self.head is None:
self.head = self.Node(value=item)
@jaxlo
jaxlo / tcp.go
Created September 12, 2023 20:14
Simple tcp client/server example in Go
package main
import (
"bufio"
"fmt"
"net"
"os"
"strings"
"time"
)