💛

Posts tagged with :yellow_heart:

Jeffrey
@Jeffrey0
stickers 🎉
https://cloud-qdm4wy6o8.vercel.app/0image_from_ios.jpg
rishi
@rishi0
Helloooo Hack Clubbers! It’s ya boi rice back at it again with another HN ship :hn: :parrot:! Before I lay out the new changes, I just wanted to thank the wonderful @caleb for testing out the bot authentication system yesterday (the UNO bot looks great), and @khushraj.rathod for volunteering to build out the exchange system—forex is coming to Hack Club, everyone :parrot_love:! Anyways, let’s get back to day 4 of my personal lil shipathon: changes to @undefined and the HN API! The Teller now has one awesome new command for validating payments (/pay was there before, but I’ve added some new messages and interactivity with it), and a super great new dashboard—feel free to head over to Home on @undefined’s profile page to take a look. The HN GraphQL API now supports advanced pagination and sorting! You can now query for as many transactions as you want, iterate through them, skip through tests, and even order by different fields! For instance, to grab the 5 people with the most HN and two of their largest payments, you can do something like:
query Users {
  users(options:{
    sort:{
      field:"balance",
      order:"DESC"
    },
    take:5
  }) {
    id
    balance
  	outgoingTransactions(options:{
      sort:{
        order:"DESC",
        field:"balance"
      },
      take:2
    }) {
      id
      balance
      from {
        id
      }
      to {
        id
      }
    }
  }
}
I’m soooooo excited for what all of yall are going to be doing with this—as always, if you’re interested in making a bot, feel free to DM me with the bot’s username to get your very own token! You can find the source for HN over at: :githubparrot: 🌟 z.rishi.cx/g/hn, and the Teller over at z.rishi.cx/g/teller :D P.S. The next ship will be V1 of HN—the production-ready, stable version of the API with documentation!
https://cloud-5lhnlltcl.vercel.app/0screen_shot_2020-12-25_at_3.14.50_pm.png
rishi
@rishi0
Yellow hellow everyone! It’s the first day of winter break, and now that all my school stuff’s finished (having handed in what might, in hindsight, have been one of the worst essays of my life), I’ve found myself quite pretty bored! I’m going to be challenging myself to build one cool thing every day (and maybe ship it either here or in #rishi if it’s smaller), so here’s the first one! I’ve found myself working with asynchronous hooks in React a lot; whether that be to fetch data or just do timed stuff client-side, the normal integrations just don’t really cut it for me. That’s why I built my own library for those kinds of hooks! @rishiosaur/async is built in Typescript, and has some awesome documentation as a result (Typedoc really comin thru), and has two hooks that I use a lot in my daily React life: usePromiseEffect and useAsyncEffect, both of which are modelled to look like idiomatic React (I’ve attached an example of their usage down below). :githubparrot: You can find the Github repo over at z.rishi.cx/g/async (feel free to star!), :npm: The NPM package over at www.npmjs.com/package/@rishiosaur/async, 🏗️ And the documentation over at async.rishi.cx!
https://cloud-6m79kebkk.vercel.app/0screen_shot_2020-12-22_at_10.27.16_am.png
jasonaa
@jasonaa0
this isn't very important but this is my biggest achievement on this slack
https://cloud-j2xppzb9j.vercel.app/0image.png
alexa
@alexa0
Alexa is currently: taking a self help day and spending time with friends
https://cloud-24sv728ok.vercel.app/0image_from_ios.jpg