kristofer / Pandas Hello World
Последняя активность
a very simple pandas test
Explanation:
import pandas as pd:
This line imports the pandas library, aliasing it as pd for convenience, which is a common convention.
data = {'Message': ['Hello, World!']}:
kristofer / WifiMacBookFreeBSD.md
Последняя активность
networking wireless.
kristofer / Spark/Docker Troubleshooting Guide
Последняя активность
Spark-Docker-SQL - Troubleshooting Guide
🚨 Quick Emergency Fixes
🔥 "Everything is Broken" - Nuclear Option
# Stop everything and restart fresh
docker-compose down -v --remove-orphans
docker system prune -f
docker volume prune -f
kristofer / Create Classroom assignment
Последняя активность
for GitHub classroom
1 | #!/bin/bash |
2 | |
3 | # GitHub Classroom Assignment Creator |
4 | # This script creates a new assignment in a GitHub Classroom using the GitHub CLI |
5 | |
6 | set -e # Exit on any error |
7 | |
8 | # Color codes for output |
9 | RED='\033[0;31m' |
10 | GREEN='\033[0;32m' |
kristofer / millions.java
Последняя активность
experimentation in code is Good Idea
1 | import java.time.Duration; |
2 | import java.time.Instant; |
3 | import java.util.ArrayList; |
4 | |
5 | public class Millions { |
6 | |
7 | |
8 | private Integer[] aArray; |
9 | private ArrayList<Integer> aList; |
kristofer / HTTP Server Java
Последняя активность
a very simple HTTP server in Java
1 | package rocks.zipcode; |
2 | |
3 | import java.io.IOException; |
4 | import java.io.OutputStream; |
5 | import java.net.InetSocketAddress; |
6 | |
7 | import com.sun.net.httpserver.HttpExchange; |
8 | import com.sun.net.httpserver.HttpHandler; |
9 | import com.sun.net.httpserver.HttpServer; |
kristofer / DTOs (java & python)
Последняя активность
Data Transfer Objects (DTOs) Explained for Beginners (Java, then Python)
Data Transfer Objects (DTOs) via Java; Explained for Beginners
What Are DTOs?
A Data Transfer Object (DTO) is a simple container for data that travels between different parts of your application. Think of a DTO like an envelope specifically designed to carry exactly what's needed—no more, no less.
public class OrderDTO {
private Long id;
private String customerName;
kristofer / gist:d3baa93bb0434570863f9306365bece1
Последняя активность
1 | sjldjaslkdjalkjddlasjlkjsa.kmd |
kristofer / Newbie and Git
Последняя активность
How to SSH keys etc and so for Newbies and Git
Adding a new SSH key to your GitHub account
As a newbie, you don't understand this, but...
when you're in a terminal and you're fussing with git and you push and oops it doesn't work.
Maybe you need to make sure your git account has keys on your Mac so that git push
works right.
To configure your account on GitHub.com to use your new (or existing) SSH key, you'll also need to add the key to your account.
kristofer / Maven for Java Newbies
Последняя активность
Maven and POM.xml for Newbie Java Programmers
What is Maven?
Maven is a powerful build automation and project management tool primarily used for Java projects. Think of it as your project's organizer and assistant that handles several critical tasks:
- Dependency Management: Automatically downloads and manages libraries your project needs
- Project Building: Compiles your code, runs tests, and packages your application
- Project Structure: Enforces a standard directory layout for consistent organization