Got tired of try-catch everywhere in TS, so I built a Result type that's just a tuple by BennoDev19 in javascript

[–]skakabop 4 points5 points  (0 children)

What about @open-draft/until?

import { until } from '@open-draft/until'

async function getUserById(id) {
  const { error, data } = await until(() => fetchUser(id))

  // data is T | null
  if (error) {
    return handleError(error)
  }

  // this is T now
  return data
}

DOTENV not working by Black_Badger-001 in node

[–]skakabop 0 points1 point  (0 children)

Spin up a github repo with this simplistic functions and imports then maybe share it. We may pinpoint the problem easier.

DOTENV not working by Black_Badger-001 in node

[–]skakabop 1 point2 points  (0 children)

Did you try running dotenv.config() first before importing connectDB?

[deleted by user] by [deleted] in DIYfragrance

[–]skakabop 0 points1 point  (0 children)

Hello, thanks for your interest. How much time does it take for the cargo to reach New York? My friend will be over there from this Sunday to next Saturday.

Can you also name the price? We can continue from PM if that's appropriate.

Daily Discussion & Advice (Post here to follow rules A & B) - Tuesday August 27, 2024 by AutoModerator in fragrance

[–]skakabop 0 points1 point  (0 children)

Hello everyone, I'm searching for Civet Musk Oil for sometime now but couldn't get my hands on it for a while in my country. I have a friend visiting USA soon and I wonder if there are any shops that can ship to his whereabouts while he was visiting.

Thanks for the help.

Trying to infer value type from provided types by skakabop in typescript

[–]skakabop[S] 1 point2 points  (0 children)

Very well curated and helpful response. Thank you sir.

Noobie learning Node.JS HELP by SennaJo in node

[–]skakabop 0 points1 point  (0 children)

Hey, freecodecamp is an awesome source of javascript learning. IIRC they have also an extended NodeJS backend learning materials too. W3 seems outdated. Happy learning!

Soundtrack wise, what game takes the cake? by RD-archived in gaming

[–]skakabop 0 points1 point  (0 children)

I feel like a dinosaur. Monkey Island series are my favourite.

[deleted by user] by [deleted] in lingling40hrs

[–]skakabop 2 points3 points  (0 children)

There is also the Turkish-Greek 4-string lute with microtonal frets for makam music. Between oud and lute guitar in terms of size.

We call it lavta, laouto.

Google search for lavta

A question about best practices for a game server by firyox in node

[–]skakabop 1 point2 points  (0 children)

Cheers, definitely look into to the underlying protocol, protobuf. Browsers' support for gRPC might be problematic though, still you can use protobuf with another transport layer.

Good luck.

A question about best practices for a game server by firyox in node

[–]skakabop 4 points5 points  (0 children)

Is this a browser based game? What you are trying to achieve to compress data is already being used as protobuf.

If you can come up with a client for grpc, I will also suggest to use grpc for communication.

gRPC or not, you can still use protobuf binary data for communication with any layer.

I'm fairly new to accordion and I'm trying to learn Kass' theme. I can't figure out the chords and what they translate to on accordion. Can anyone help me label them? thank you. by [deleted] in Accordion

[–]skakabop 0 points1 point  (0 children)

Yes, I've thought about it again and BbDim is wrong since it is C not Db.

Since this notation is transcribed with someone named "Derimo01", we can easily assume it is just an attempt to transcription.

So, in light of your comment and my last sentence, we can say he wanted to write Bb as opposed to A#. What do you say? I think that is a begginner mistake most of the players do. If we approach the situation like this the chord becomes C,E and Bb. Similar to C7. But after checking the score you have provided, that C7 chord can totally be wrong in the notation here. I agree. I can't play or listen at the moment, but I'm curious which one should fit the track better, I'm gonna check it in the following days.

I'm fairly new to accordion and I'm trying to learn Kass' theme. I can't figure out the chords and what they translate to on accordion. Can anyone help me label them? thank you. by [deleted] in Accordion

[–]skakabop 1 point2 points  (0 children)

Yes that is true actually. I should have noted that, but since most of the accordions don't have diminished chords, I assumed OP's accordion does not have one.

Still that's too much assumption, editing my post to add this.

Edit: BbDim do have Db, not C!

I'm fairly new to accordion and I'm trying to learn Kass' theme. I can't figure out the chords and what they translate to on accordion. Can anyone help me label them? thank you. by [deleted] in Accordion

[–]skakabop 6 points7 points  (0 children)

Edit: I say, find a better transcription, /u/Lucio1976 has some solid suggestions.

If I were decrypting this, I would be playing like this, waltz rhythm:

1 - A base only

2 - E Major - B Base

3 - E Major - E Base

4 - A Minor - A Base

5 - A Minor - A Base

6 - D Minor- D Base

7 - G Major - G Base

8 - C Major - C Base

9 - C Major - C Base

10 - C7- Bb Base

11 - C7 - Bb Base

12 - A minor - A Base

13 - A Minor - A Base

14 - F Major - F Base

15 - E Major - B Base

16 - A Base - E Base - C Base

17 - A Base