@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-U02KEJ8T6D83Here'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-U02KEJ8T6D83Daily 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-U02KEJ8T6D83Daily 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.
@matt1: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
@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!
@ian4Using 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
@ArcadeWise0github.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:
@alialiwa20050Today, I've started working on a new Python-based multiplayer game, Pynopoly.
:python::hacker-cat::replit: 🎲 :flying_money_with_wings: 💰
Here's a sneak peek of my program so far:
@hexxx0Wrote a quick python script emailing colleges asking for freebies. Have to wait and see if anything will come through now!
@ArcadeWise0Pretty spotify card for my website, beat you to it @matthew! It's a bit finicky but it works. I have a flask api acting as an itermidiarie between spotify and my website.
@JuanGonzalez0spent some time today learning how to convert python files to exe