Posts tagged with :lower_left_fountain_pen:

wrote a recursive descent parser (that handles left-recursion) in ocaml for my PL class! functional programming is fun
Wrote my first unit tests today!
Wrote a simple scheduler in C++ for my microcontroller project, it allows me to schedule runs of some "work" function by giving it a delay or a timestamp when I want it run. you can have multiple jobs scheduled, each with different parameters for the function!
hi! i’ve been a bit inactive in this slack but i’m officially back! just wanted to share a couple things i’ve been working on: marrow, markright, and the star of the show, arson! arson :fireball: is a programming language, around, well, ARSON! what else. (excuse the bad inside joke.)👇 here’s a demo of me writing a sudoku puzzle solver in arson with marrow, a text editor i’ve been working on using this amazing guide on writing one in c that i’ve been expanding upon! because i want my own vim alternative but mostly for funsies and to learn c. another things: markright! some people might know that i wrote my own markdown parser a while ago along with a web ui. the web ui has been improved and looks a lot better! (although i have a couple issues to fix in chrome). comes w/ google oauth (i kind of skimped on adding extra auth options) and a recursive filesystem. demo also below 👇 extra things i did or am working on icyi at www.jianminchen.com/article/general/2023-06-04! going forward planning to work on more hc-centric stuff!
I finally finished my confetti thing for #angelhacks-site! :angelhacks: github.com/hackclub/angelhacks3/pull/8 :pr: This is my first time working with Next.js :nextjs: and I wanted to see if I could code something with it without reading any docs! *How?* • Well, first I had an error, I couldn't start the dev environment! :pensive-wobble: To fix this I (somehow) installed next globally and that allowed my package.json :npm: to run next build • After that, I wrote the confetti code and implement it on a React :react: component but I also don't know any react so it didn't work :eggsdee: • So I added the confetti code into the already existing PhotoGallery component! :yay: Everything looked good, but then I got this error: ReferenceError: document is not defined :errors: • To fix that, I run my code client side after watching a small tutorial and it ended up like this:
import Masonry from 'react-masonry-css'
import styles from './PhotoGallery.module.scss'
import { Nunito } from 'next/font/google'
import { useEffect } from 'react'

const nunito = Nunito({
  weight: ['400', '800'],
  subsets: ['latin']

export function Button({ children, fontSize = '7rem', ...props }) {
  const handleClick = () => {
    import('js-confetti').then(({ default: Confetti }) => {
      const confetti = new Confetti()
        emojis: ['🎮', '👾', '🕹️', '💻', '📸', '🎧', '🎨', '🪽']

  return (
    <button className={styles.button} onClick={handleClick} {...props}>
      <span className={styles.shadow} />
      <span className={styles.edge} />
        style={{ fontSize }}
        className={`${styles.front} ${nunito.className}`}>

function Image({ src, text }) {
  return (
    <div className={styles.photo}>
      <img src={src} width="auto" />

export default function PhotoGallery() {
  useEffect(() => {}, [])
  return (
    <div className={styles.photoGallery}>
      <div className={styles.photos}>
This was very fun to work with, and definitely I need to properly learn Next.js on the future. :salute:
Data visualisations are relaxing to make; this one is using Wikipedia editor data. I wrote a little to explain what's going on. Definitely going to do more of these observablehq.com/@malted/wiki-editors
wrote a chess bot!
Just wrote an article on Hashnode about my WHW debugging journey.
Didn’t do anything much today. Went to hardware store and bought superglue and anti-slip rubber mat for my RC car stand, gonna see if this prevents the car from slipping around, wrote a blog on how I made my first web app too.
Day 6 of Winter Hardware Wonderland :winter-hardware-wonderland: Pretty chilly today, Melbourne’s weather just doesn’t want to make up its mind! Today I: • installed the fan PWM controller • Wrote a little bit more code
WHW Day 6/10: Wrote some more code for #sprig persistent storage.
Day 4 of #WinterHardwareWonderland Today I wrote some stability code for the drone motors and also attached the power module
Day 3/10 of #hardware-party!! :winter-hardware-wonderland: Split-flap display: I added in the missing flaps from yesterday and wrote a short script to make more precise flips. It flips rather inconsistently, however. 😕 I also figured out the hall effect sensor, which detects magnets — i’ll use that as a homing mechanism to identify what letter the display is on.
WHW 2: Software today. Wrote a bit of code, neovim go crazy? Hardware tomorrow. Gotta get the HDMI input working, going to try booting Alpine from a USB. If all goes well I might be able to host a couple of things there tomorrow (just testing stuff, no stability yet).
Late winter wonderland Day 1 (because of stupid timezones making me confused :bsod_smile: ) • Figured out how to connect the screen to the board • Wrote the software for the display (actually took me more than one day)
Hey @scrappy-U015D6A36AG I'm back with Second day updates on my #hardware-party project. So, today I wrote some code to convert the epub files into beautiful images which the eInk display can then display. Still figuring out if this is the best way but Waveshare asked me to convert everything to images so here we go with Approach one.
Day 1 of Winter Of Making, I designed the base station case for a Heltec Lora32 V3, wrote the speed sensor code and spent hours trying to level my ender 3
Day 1/10 of #hardware-party! Starting today, I’m going to spend a little time every day for the next 10 days building a split-flap display inspired by the parts list from @linkai here. It’ll be internet connected, so I can wire it up to show the current balance on :bank-hackclub-dark:. Today I wired up the hall-effect sensors that’ll control the split flaps, and wrote some test code to make sure they’re working the way I want them to. You can see the sensor working by how it flashes from the magnet. Once I have them working correctly I’ll start working on a motor housing in Fusion 360 that will hold the thing in place and connect it to the flaps. Excited to see the progress everyone else makes today! I’m going to spin up a repo tomorrow and show off my work there.
wrote an article about shakespeare & ai. no idea if the code works tho LMAO
I wrote a font explorer for sprig because I needed a pipe | character. I found it where the backslash \ normally is.
Playing around with Svelte! Wrote a little highlight.js component
quickly wrote some code for a pictionary game for the python class that i’m teaching!
wrote a simple bytecode-interpreted language while bored at school today (read thread for details)
Day 8/10 of #10-days-in-public! Completed day 6 of AoC, it was much easier than I thought it'd be. Did a lot of work on my "copyright infringement detector" project, sketched a data model for storing perceptual hashes of our videos, hosted a redis instance on digital ocean and pushed all our data on it. Wrote a lot of python, and ffmpeg scripts for the project, kinda getting the hang of python now.
day 6 of #10-days-in-public studied whiplash movie, and learned about how damien chazelle filmed the whiplash(my favorite movie) in just 19 days and took down tips on how to write a good story. specifically i learned to visualize what you want to happen in the movie and to certain plot points bigger than the characters themsevles. i also wrote down some ideas i had for different scenes in my dinosaur film.
day 5 of #10-days-in-public! wrote the dockerfile, might need some time to improve on it. gonna be learning go soon
Day 1/10: Made it through chapter 1, and starting on chapter 2 of the Deep Learning with Python book. My goal is to understand some of the fundamental concepts of neural networks in the next 10 days. I wrote and trained my first neural network! (but I don’t understand the code at all). See hackclub.slack.com/archives/C01D7AHKMPF/p1669597204292789 if you want to join the learning group I’m putting together!
This morning I wrote a Webpack loader that lets you import Sass variables. (I promptly deleted it and swore never to speak of it again)
Wrote a little Python script to change the background on my computer every so often. Probably could have found something, but this is more fun :)
Was bored so I wrote a guide for ppl who want to generate obsidian notes from gcal 🙂
Just finished an art drop of some art that I haven’t had the time to post online for a while! I’m going through the Inktober 2022 challenge, so I created Day 4 Scallop, Day 5 Flame, and Day 6 Bouquet! I also finished a collage project recently of an ouroboros 😄
Remaking my song Green Light! (Again!) It’s been over two years since I first wrote it…in fact I’m pretty sure you can find the original somewhere in here…time flies
Day 8/10 of #10-days-in-public! I’ve been rebuilding my website and today I got myself stuck in *bash madness*. I wanted to modify my note syncing script to add metadata to the notes (specifically creation time, last edited time, and a list of the file’s previous names) and… wow. That was a lot harder than I expected. Ultimately, I wrote this mess. But it does the job! And it works in production! Now all of the notes being synced to github.com/zachlatta/public-notes have metadata added to their front matter. Here’s an example. Now I can add more details about the note being displayed on zachlatta.com, sort them by creation date, and also gracefully handle renames, so no more 404s after a file gets renamed. Beta of the new site is at beta.zachlatta.com. (right now zachlatta.com doesn’t work because my self hosted setup constantly breaks 😞)
#10-days-in-public back to school :sob (5/10) Not much development, i was tutoring and running errands (new haircut!). Fall break is over :crying_sunglasses_cowboy: wrote some notes for my classes in prep for tmr. Flight back to philly was actually not that bad surprisingly, i met a cool dude who we shared a mutual with and we talked the whole flight. I’ll have an update later tonight w progress on projects 👍
Day 5 of Zachtoberfest® #10-days-in-public!!!!!! My dad had a chocolate tasting and I had some of the worst correlation (probably because of my sweet tooth). Had a lot of fun and tasted a lot of chocolate. Unfortunately did not have the time to do programming as I did a lot of drawing for inktober and a school project as well! Tomorrow I have school and my first “day” or whatever at McDonalds so I will be pretty busy. Here are my inktober drawings so far (Days 1-9).
Day 2/10 of #10-days-in-public! I’m working to rebuild my personal website, zachlatta.com, over the next 10 days with the key new feature being the ability to render content from a subset of my notes in Obsidian. Today I focused on getting the script I wrote to separate out my Obsidian notes into a separate repo deployed to a server and running every 15 seconds. I ran into some tricky issues around authentication, but got it working! All the public notes are now being pushed to github.com/zachlatta/public-notes. Next step is to build out the new Next.js site to render those notes on zachlatta.com in a nice clean way. I’m also thinking of adding some sort of GitHub commit chart-esque visual to the new site, and perhaps a streak mechanism too.
Day 1/10 of #10-days-in-public! Over the next 10 days, I’m focusing on rebuilding my personal website. The key new feature I’m building in the new site is a way to publish content directly out of my private Obsidan notes repo by adding #public to any note. Today I finished the filter-and-sync.sh script that filters the public files out of my private Obsidian repo and copies them to a public repo that will be rendered by the new static site I’m building for zachlatta.com. I also got it running in Docker, and wrote a timer script to repeatedly run the sync process every 15 seconds. Once this is deployed, I’ll be able to add #public to any file in my Obsidian notes, and that file will be pushed and deployed to my website within 15 seconds! So if the file in my Obsidian repo is called “Test.md”, the URL it will be publicly available at will be zachlatta.com/test Excited to see the progress everyone else makes today! You can see the work I did today and my progress here: github.com/zachlatta/zachlatta.com/tree/80001986425894a8948b2a7d044b410978d56a94/public-notes-sync
Hehe this might seem super quick but I posted my Inktober #1 a day late, so with this I’m caught up :yay:. Day 2/32's theme is scurry so I did a scurrying skunk!
I created my first drawing for day 1/31 of the Inktober 2022 drawing challenge! Today’s theme was “Gargoyle”.
Hello :D It’s been a while, but I wanted to start posting to Scrapbook again, so here’s a little sketch of myself I did to warm up ✨
Here are two sprig programs I recently put up: The first is two sprites that are connected together, and can't move, The other is a previous snippet of code I wrote which allows you to combine maps. I'm probably going to make more demos, which will show off other useful snippets.
Wrote my first SQL code!
Google Apps Script is very cool… wrote some code to send an email to each attendee that registers for Leland Hacks! Also got to check out our venue :)
Today I wrote some TypeScript types
i wrote complex vanilla css! woah
i wrote a program to automate the changing of my twitter banner, being my second project to be written in golang that i'd actually share, and deployed it to a digitalocean droplet!