@avi0ooh this has been my first scrapbook in a while
I've been coding a polymer simulation in Python based on what i'm learning about how polymers form :)
It's pretty cool!!
@ArcadeWise4Today I have a stupid ship. Voilá FizzBuzz, my favorite problem, in gForth! Forth is one of my favorite languages, as it’s stack based and I love stacks. I also am shipping a terrible python implementation of Forth! It doesnt support much, but if you make something cool message me!
FizzBuzz: replit.com/@arbee/fizzbuzz
My Forth: replit.com/@arbee/Forth
@ced0ST7735 LCDs come with little colorful tabs on the sides of them.
there are several different colors: red, green, blue, etc.
the versions we got to use with the gamelab beaker are green.
the javascript driver for this code only has the initialization sequence for the red version.
the code split on the left is the source code for it. on the right, I have the source code for the python initialization code for the green version.
right now, my colors are inexplicably scrambled, and the best guess I have is that I used the wrong initialization sequence.
@rithul7+Today, I made a microservice starter, but in python. This is made for my school project and I have set it to be public, find it here
@ced0imagine if you tried to run a gamelab game on a 2 core CPU -- a Raspberry Pi Pico -- using a software rasterizer written entirely in Python.
the fps might be 5.
yeah, the fps is 5.
join #nemea to help us as we scramble to speed this up and get it in the hands of hack clubbers everywhere 😉@ZoeDroulias0I turned my writing prompt from yesterday into a GUI using Tkinter in python. The generated names/objects/villains overlap, and I’m thinking of moving into Flask/web dev to make sure that the generated parts are just replaced.
@ZoeDroulias0Started coding a writing prompt generator in python today. You just enter a number of prompts you want and it will return some (very generic and simple) writing prompts for you to write about.
@HenryBass-U02KEJ8T6D80Here's what I have so far. I've made a pretty shitty transcript of the text, and have done some analysis on it. For people in the 1800's they sure did fucking make this hard for me. There's no obvious spaces, or consistent symbols. I tried using python to map symbols to letters according to frequency, but that didn't work. if anyone has a good algorithm for this, please tell me lol
Images are:
English letter frequency
Symbol frequency including equals sign, and not including equals sign
Original post: (More info in thread, along with images)
hackclub.slack.com/archives/C01504DCLVD/p1646529906363009
@OmarMobayed0woooh i first successful python program in years! the nostalgia
@Skye0Aaaaa forgot all about this! Just trying to set up my discord server and coding a bot :)
Im using autocode for the server hosting and JavaScript btw… think I may switch to Python.
@ZoeDroulias0I’ve been a little MIA recently, but I’ve just finished this 5 question personality quiz with python and flask! You can give it a go here!
@ced0as I port a game I wrote a while ago in Rust to C to try and see how much smaller I can get the WASM bundle size, I've found that what has the biggest impact is the "culture" of the languages.
for example, the maps in the game I made are laid out in blender, and then exported to JSON with a custom python script I wrote using blender's API.
it's easy to add a Rust dependency to parse the JSON for you, but that bites you in the ass later; serde can inflate your compile times AND your WASM bundle size.
in C, however, package management looks different; there are single header libraries that are pretty easy to include, but using libraries isn't very C-like, and unlike Rust, C has a stable ABI.
that means that if I change my python script to dump a bunch of floats into the file as binary, I can fread those directly into a bunch of C structs. (I do have to handle endianness for integers, though)
in Rust, even if I used #[repr(C)] to force a stable ABI for those structs, I'd still have to jump through a bunch more hoops (unsafe) or pull in a dependency like bincode (which would in turn pull in serde ...).
anyway, so I quickly wrote a python metaprogram to generate a C header that can fread (or just memcpy) in all of the binary data into the fields in the game map object that the first python script pulls out of blender
@audreyolafz0I've worked on creating a Discord bot yesterday and today, tinkering with both Python and JavaScript.
@HenryBass-U02KEJ8T6D80Daily Log day 3:
Messed around with some ML from the hotdog images, and i'm gonna do more machine learning stuff in the future.
Also, for a quick break from that, tried Pyxel I wanted to do somthing with Pico 8, but wasn't really up for the price. Love the minimalism of the code though, so I found a python library that does basically the same thing. 128x128 max res, and color palate of only 16. Coding with limitations is kinda fun. Obviously not a game dev, but in a hour I got somthing bullet-hell-ish working with collisions.
Next, i'll find somthing fun to do with tensorflow. Past experiences with it weren't bad
@HenryBass-U02KEJ8T6D80Daily Log day 2:
I spent all afternoon making a python script to download images of hotdogs under creative commons, with 224x224 aspect ratio.
Send help.
github.com/HenryBass/Hotdogs
Oh and here's what happens when a hotdog download gets glitched:
@taylorleehackclub0Recreated Code Ninjas in Minecraft using Python and the given inventory. Fun fact: Before this, I never knew how to play Minecraft, but now, I can confidently say I know more about it. The coders really loved it :~p Check out the process on Notion
@hugo.y.hu9350Haiiiiiiiiii! Big ship(for me, but not really big lmao)
I shipped a prototype MailCorgi a while back, as a python based application that could purchase the cheapest labels for you. Now, I'm reshipping mailcorgi, but as a slackbot. If you're in my channel or talk to me about mail, you've probably seen me rant about @maildog and how the labels are:
1. more expensive(shipstation does not utilize USPS commercial price base)
2. slow(uses airtable + zapier)
3. breaks sometimes(ughhhhh)
4. is very not flexible(why do i have to buy a 10 dollar label, refund it, just to ship a sticker envelope to another country????)
With these points in mind, I built MailCorgi, with the help of @deven and @tejasag!
MailCorgi is a python based Slack app(using slackbolt) that can store addresses, orders, leader info, nodemasters(using supabase :supabase:). MailCorgi can buy shipping labels(if you give it a shippo API key. It will by default purchase the cheapest shipping option), and can also not buy a label and just generate a 4x6 thermal label with address information. This gives you the ability to just stick a thermal label on an envelope(#6.75) with address info(goodbye ballpoint pens!), or buy your own shipping labels(so that I can get ComPriceBas on my USPS labels and discounts on UPS too)
Oh, did I mention? Mailcorgi is significantly faster. I actually timed it:
Making a mail mission: mailcorgi: <1second, maildog: 30 seconds on a good day, NaN sometimes
Creating a label(no shipping label, just address): 45 seconds + for maildog, <5seconds for mailcorgi
As you can see, these are not just incremental upgrades in speed(sorry max, but you're not in this channel so i think i can roast maildog)
anyway, i think that's mostly it but i have a screen recording of a mailcorgi demo :D@hsbhatia7650Setting headers and HTTP status works now, yet to go through the HTTP spec tho. Boycott Python, Go back to BASIC
@Kxffie-U02D18SMWQP0Been a while since i was last here. Lots of things have happened that i want to scrapbook.
I actually got a girlfriend, it has been amazing.
I've learned a lot more and got back into coding after focusing on school for a bit
Learned better React, and I want to start getting into custom CSS rather than frameworks like Materialize. (I want to learn TailwindCSS)
I might want to move on and learn NextJS and some other things
I am in a competition with my school. I might be the only web developer that is competing. everyone else might be doing Java or C++ or Python
I think that is it
@EmilyLi0After 4+ hrs of debugging everything else today, I am begging CUDA and pytorch to stop running out of memory 🙏 🤕
@nilaany060My literature test is postponed , so I am just reviewing this python code
@Skyascii0Experimenting with hikari, a Discord library for Python built on good intentions.
@matt0:vercel:
Wanted a super chill project to work on over the weekend so I made verpi, a program to show the status of your vercel deployments on a small light strip! Alongside a super clean codebase it also has this nifty little python script to compile a binary on the pi without changing your local environment one bit! Below is a quick demo:
github.com/gleich/verpi@krishmittalwork0Hey, I will be conducting my first series PYTHON: from sugar to making a cake, on the schoolhouse.world platform. Everyone is invited to join the series. This is my second step into the world of teaching(the first being my book Lets start C) and I plan to take several more steps in the future and do my part in the growing community of global learning. Link-schoolhouse.world/series/315
@ZoeDroulias0I just created a letter-for-letter translator in python and tkinter for Fal (a language (more so alphabet) I made)
@ZoeDroulias0I cleaned up my desk today. I’m able to think so much clearer now as I work on some python projects.
@ZoeDroulias0I created a daily horoscope scraper in python this morning. It will give you the sign, the date, and today’s reading. It’s currently just pisces, but if you change the last word in the URL, the reading will change for your horoscope. :python:
@ZoeDroulias0Experimenting with Kivy in python a bit today
@parkalex3800this was generated from the backend I wrote in python
@ZoeDroulias0Focusing on some python repls today. Transferring some to GitHub.
@ZoeDroulias0I was looking through some old projects and I found a python program that finds the discriminant and tells you whether or not the roots are real or imaginary.
@ZoeDroulias0Simple visual calculator in Python and Tkinter@ZoeDroulias0Simple Ptable (an online periodic table) searcher in python with BS4
@WilliamLane0after 5 minutes of trying to get a file extension in fish I ended up writing a small python script and I now have a new cat configuration complete with syntax highlighting and markdown rendering
@RebeccaWang0PYTHON CONTROLS A PLANE :screaming-cat: MY MIND IS BLOWN, AND IM ADDING IN MORE CODE NOW HEHE@kayley0KWK Day 1: Met a lot of new people and started learning Swift (which is a lot more like Python than I expected) — my friends told me to vlog the entire thing so here’s a timelapse from tonight!@ian0Using Python + Node.js to automate keyboard shortcuts on Windows - I'm hoping to use this in Zoom meetings and have a physical button for muting/unmuting.
@cwi0Working on a hi-res terminal art Python lib. (it's NOT zoomed out!)
@CC0Day 4/100 Days of Code: - Started working on a cool Python project (which I should launch by the end of this week)! - Continued brainstorming ideas for Surfs Up Hacks hackathon (this weekend)
@courtney0I stopped html and started python..it's more fun though!
@imamuzzaki0I'm trying to make a cool thing with selenium in python lang
@alialiwa20050Continuing hacking :hacker-cat: of my new project, Pynopoly, The Python-Based Monopoly Game!:python:
@Agrim0Made a Physical button for Zoom and MS teams Mic using Raspberry pi Pico and Circuit python. My first build using Pico and Circuit python
@ArcadeWise4github.com/l3gacyb3tata/caas
CaaS is my latest project. I used it to learn api routes in nextjs! CaaS uses files I generated in python to efficently crack unsalted sha1/sha256 hashes. Image is unrelated, but hilarious
@alialiwa20050I've created an advert for my Hack Club's meeting tomorrow. :gaynormccown: