Skip to content

Instantly share code, notes, and snippets.

View feoh's full-sized avatar
💭
Excitedly diving in to my new position at MIT!

Chris Patti feoh

💭
Excitedly diving in to my new position at MIT!
View GitHub Profile
@feoh
feoh / hashmaps3.rs
Created December 2, 2024 03:43
The Solution
// hashmaps3.rs
//
// A list of scores (one per line) of a soccer match is given. Each line is of
// the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>"
// Example: England,France,4,2 (England scored 4 goals, France 2).
//
// You have to build a scores table containing the name of the team, goals the
// team scored, and goals the team conceded. One approach to build the scores
// table is to use a Hashmap. The solution is partially written to use a
// Hashmap, complete it to pass the test.
@feoh
feoh / hashmaps3.rs
Created December 1, 2024 23:14
Getting smacked down by the borrow checker
// hashmaps3.rs
//
// A list of scores (one per line) of a soccer match is given. Each line is of
// the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>"
// Example: England,France,4,2 (England scored 4 goals, France 2).
//
// You have to build a scores table containing the name of the team, goals the
// team scored, and goals the team conceded. One approach to build the scores
// table is to use a Hashmap. The solution is partially written to use a
// Hashmap, complete it to pass the test.
@feoh
feoh / hashmaps3.rs
Created December 1, 2024 20:16
Rustlings hashmaps exercise 3 fail :)
// hashmaps3.rs
//
// A list of scores (one per line) of a soccer match is given. Each line is of
// the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>"
// Example: England,France,4,2 (England scored 4 goals, France 2).
//
// You have to build a scores table containing the name of the team, goals the
// team scored, and goals the team conceded. One approach to build the scores
// table is to use a Hashmap. The solution is partially written to use a
// Hashmap, complete it to pass the test.
@feoh
feoh / Mistral-7B-Churchill-Crowley.txt
Last active July 15, 2024 20:34
My latest play with the Mistral-7B model, which continues to impress me :)
```
>>> Write an essay on the connections between Alestair Crowley and Winston Churchill in the World War 2 Era.
```
Title: Alestair Crowley and Winston Churchill: An Unlikely Alliance in the World War II Era
The names Aleister Crowley and Winston Churchill are often associated with vastly different spheres of human endeavor – one, a renowned occultist, poet, and drug user; the other, a revered
statesman and war leader. However, during World War II, these two seemingly disparate figures found themselves connected in ways that have since been largely overlooked or forgotten.
Aleister Crowley's involvement in World War II began when he was approached by British intelligence in 1940, shortly after the outbreak of hostilities between Germany and Britain. Desperate for
any advantage in the impending conflict, British intelligence saw potential value in Crowley's extensive knowledge of occult practices, esoteric symbolism, and his vast network of contacts
@feoh
feoh / florida_wifi_measurements.txt
Last active March 14, 2024 02:32
Geri & Ron's Wifi Bandwidth Measurements
```
## Living Room
144 MB/s
165 MB/s
165 MB/s
## TV Room
## Computer Room
@feoh
feoh / mistral_7b_lamb_slaughter_ish_lion_ish.txt
Created December 13, 2023 22:29
Ask Mistral-7b to write a story with VAGUELY matching details from _The Lamb Will Slaugher the Lion_ and see what it spews out :)
>>> Tell me a story about a bunch of anarchists living in an abandoned town in the Pacific Northwest who summon a spirit guardian in deer form that turns demonic and begins preying on the residents.
Title: The Enchanted Forest of Deception: A Tale of Anarchists and the Malevolent Spirit
Once upon a time, deep in the heart of the Pacific Northwest, there existed an abandoned town shrouded in mystery. The once-thriving community was now inhabited by a group of anarchists who sought refuge from the confines
of society. They cherished their freedom and embraced their alternative way of living.
Deep within the enchanted forest that surrounded the town, there was a powerful spirit known as "The Deer Guardian." This spirit had been revered for generations by the indigenous people who inhabited the land before it was
abandoned. The Deer Guardian protected the forest and its inhabitants with benevolence and grace.
One fateful day, driven by their curiosity, a group of anarchists ventured deep into the enchanted fo
@feoh
feoh / NJJR6.ROM.txt
Created November 18, 2023 23:05
NJJR6 ROM disassembly
This file has been truncated, but you can view the full file.
RAM:0000 00 ?? 00h
RAM:0001 00 ?? 00h
RAM:0002 00 ?? 00h
RAM:0003 00 ?? 00h
RAM:0004 00 ?? 00h
RAM:0005 00 ?? 00h
RAM:0006 00 ?? 00h
RAM:0007 00 ?? 00h
RAM:0008 18 ?? 18h
RAM:0009 18 ?? 18h
@feoh
feoh / chatgptclasspolicy.txt
Created July 20, 2023 20:09
I asked ChatGPT to write a class policy on ChatGPT use for a college level English course
Class Policy on Chat and GPT Use in a College Level English Course
1. Purpose:
The purpose of this class policy is to set clear guidelines for the use of chat and GPT (Generative Pre-trained Transformer) technologies in a college-level English course. This policy aims to ensure a productive and fair learning environment where students can engage in meaningful discussions and develop their language and critical thinking skills.
2. Chat Guidelines:
a. Respectful Communication: All students must engage in respectful and courteous communication during chat discussions. Use appropriate language and avoid engaging in personal attacks, harassment, or any form of disrespectful behavior towards fellow students or the instructor.
b. Active Participation: Students are encouraged to actively participate in chat discussions by sharing their thoughts, insights, and questions related to the course materials and assigned readings. Active participation is vital for creating a dynamic and engaging learning environment.
c.
@feoh
feoh / gpttests.md
Created May 2, 2023 00:36
example of chatgpt generating scaffold unit tests
Sure! Here are some sample unit tests for the provided code:

import unittest import socket from unittest.mock import Mock, patch from board_game_server import BoardGameServer

class TestBoardGameServer(unittest.TestCase):

@feoh
feoh / gist:02ee40453032cb6162496354f4633877
Created May 2, 2023 00:33
example of chatgpt generating scaffold unit tests
Sure! Here are some sample unit tests for the provided code:
```
import unittest
import socket
from unittest.mock import Mock, patch
from board_game_server import BoardGameServer
class TestBoardGameServer(unittest.TestCase):