Skip to content

Instantly share code, notes, and snippets.

View sampoder's full-sized avatar
🐻
gob

Sam Poder sampoder

🐻
gob
View GitHub Profile
### This is very hacky and jank but I made it for a bit of fun!
import openai
def generateNextParagraph(previous_with_choices, past, choice):
completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": f"""
{previous_with_choices}
<tournament name="What The Pwaa!" short="What The Pwaa!"><round name="Round 1" abbreviation="R1" elimination="false" feedback-weight="0.0"><debate id="D58" adjudicators="A265" chair="A265" venue="V29" motion="M8"><side team="T30"><ballot adjudicators="A265" minority="false" ignored="false" rank="1">48.0</ballot><speech speaker="S106" reply="False"><ballot adjudicators="A265">16.0</ballot></speech><speech speaker="S107" reply="False"><ballot adjudicators="A265">16.0</ballot></speech><speech speaker="S105" reply="False"><ballot adjudicators="A265">16.0</ballot></speech></side><side team="T48"><ballot adjudicators="A265" minority="false" ignored="false" rank="2">47.0</ballot><speech speaker="S161" reply="False"><ballot adjudicators="A265">14.0</ballot></speech><speech speaker="S159" reply="False"><ballot adjudicators="A265">16.0</ballot></speech><speech speaker="S160" reply="False"><ballot adjudicators="A265">17.0</ballot></speech></side></debate><debate id="D61" adjudicators="A200" chair="A200" venue="V19" moti

Setting Up The Pis

1. Piano

Run:

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Play>https://raw.githubusercontent.com/hackclub/hackclub/master/workshops/rick_roll/never-gonna-give-you-up.mp3</Play>
</Response>
import array
import math
import time
import audiobusio
import board
@sampoder
sampoder / style.css
Created September 12, 2020 13:25
CSS uploaded by scrapbook.hackclub.com/customizer
/* @keyframes rainbow {
14% {
color: #ff0000;
}
28% {
color: #ffa500;
}
42% {
color: #ffff00;
}
@sampoder
sampoder / style.css
Created September 12, 2020 13:24
CSS uploaded by scrapbook.hackclub.com/customizer
/* @keyframes rainbow {
14% {
color: #ff0000;
}
28% {
color: #ffa500;
}
42% {
color: #ffff00;
}
body{
background-color:black;
}
@-webkit-keyframes headShake {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}

🎲 other cool projects