wesbos
Repos
334
Followers
30541
Following
31

Slam Dunk JavaScript

6067
1512

30 Day Vanilla JS Challenge

23399
31043

Starter files for learning React.js with React for Beginners

2824
2548

Ask me anything!

283
28

Starter Files and Solutions for Full Stack Advanced React and GraphQL

3507
2422

dad jokes

2538
283

Events

issue comment
Background exec output is mixed with shell input

Yeah I get the same thing - its the problem of mixing the stdout and stdin. Doesnt happen often, but when it does, my whole history is dirtied with lines of some stdout error

Created at 4 days ago
issue comment
Image loading CDN 404s

hah yeah, probably one of those things where it takes 30 mins to get 90% there, and then its hell

Created at 6 days ago
issue comment
Image loading CDN 404s

Yeah it would have to be automatic, espeically because asking people what their github ID is isn't ideal.

I wonder if it could be found from the git blame?

Created at 6 days ago
issue comment
Image loading CDN 404s

Half tempted to write a scraper that would render twitter and get the profile image..

Created at 6 days ago
issue comment
Image loading CDN 404s

We dont have everyone's github names, could they be inferred from the commits somehow? Not a bad idea

Created at 6 days ago
issue comment
Image loading CDN 404s

hmmm yeah

The URL stack is actually:

Dimension 1: images.weserv.nl?url=XXX&w=100&l=9&af&il&n=-1 Dimension 2: unavatar.io/Hacksore Dimension 3: unavatar.io/boult.me

Unavatar made the twitter images paid, so that is why the quality has gone down.

I think the issue is that the weserv.nl url isn't falling back

Broken:

https://images.weserv.nl/?url=https://unavatar.io/MRebehn?fallback=https://unavatar.io/mattaz.com

Working:

https://unavatar.io/MRebehn?fallback=https://unavatar.io/mattaz.com

Perhaps it's a URL encoding issue?

Created at 1 week ago
whatwg/fs

Adding my thoughts, re: https://twitter.com/irvinebroque/status/1635754868936962049

I think bringing this back would be a good convo - I realize many of these runtimes will be edge environments where there is no FS, but having a single API for reading/writing files across all runtimes would still be useful.

Right now, if I'm writing a script that will generate files, save an image that is returned from an API or any other FS activity, I need to decide which runtime I'm using since the FS apis aren't all the same. Right now the Node APIs are almost becoming the standard in bun/deno if you want it to work cross-runtime.

Browser + worker compat could be handy as well, though admittedly not something I've wanted or needed yet.

So, would it make sense to implement these APIs across all runtimes?

Created at 1 week ago
issue comment
Netlify CLI not consistently reloading edge functions when file is overwritten

@khendrikse Thank you - seems like that didn't fix it though.

netlify-cli/13.1.6 darwin-arm64 node-v18.12.1

I have to hit reload between 5-40 times in order for it to reload the edge functions.

Also, @nickytonline I find that when it does trigger properly, the remix server refreshes before the compiled edge function is done, so I either see a broken page, or the old server info.

Created at 1 week ago
issue comment
Add an omitted backtick

thanks!

Created at 2 weeks ago

Add an omitted backtick

Merge pull request #373 from bookchiq/patch-1

Add an omitted backtick

Created at 2 weeks ago
pull request closed
Add an omitted backtick
Created at 2 weeks ago
issue comment
[RRFC] Add `type` to `npm init`

I understand not wanting to change defaults, but could we at least get the ability to set init-type=module in our .npmrc file like we do with version, user, email and license? Seems there is no way to set the default to esm.

Created at 2 weeks ago

Update readme.md

乔木首次提交中文视频链接

Merge pull request #586 from itwxb/master

I recorded your javascript30 Chinese explanation video on the video platform in China

Created at 2 weeks ago
issue comment
I recorded your javascript30 Chinese explanation video on the video platform in China

thank you!

Created at 2 weeks ago
pull request closed
I recorded your javascript30 Chinese explanation video on the video platform in China

乔木首次提交中文视频链接 hello,i am 乔木(Qiaomu)

Created at 2 weeks ago

updates

add ignore list

Created at 2 weeks ago
issue comment
Set fftSize and frequencyBinCount to union of allowed values

thank you kind bot

Created at 2 weeks ago
pull request opened
Set fftSize and frequencyBinCount to union of allowed values

In the Web Audio API, fftSize can only be one of 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768 and the frequencyBinCount will always be exactly half of that.

Having these values as a union will help in authoring and avoiding runtime errors

Created at 2 weeks ago

Set fftSize and frequencyBinCount to union of allowed values

Created at 2 weeks ago

Set fftSize and frequencyBinCount to union of allowed values

Created at 2 weeks ago
Created at 2 weeks ago
wesbos create branch main
Created at 3 weeks ago
create repository
wesbos create repository
Created at 3 weeks ago
API Returning Empty Array of data

Hello - not sure if this is the right spot to report this as it happens with and without the Node.js API, but I figure I'd do it.

The API is authenticating me just fine. I have created an app with expenses:read and expenses:write scopes and created an auth token for my own log in.

When I call the /me endpoint, I get the account ID and then create a request like this:

const data = await fetch(`https://api.freshbooks.com/accounting/account/${ACCOUNT_ID}/expenses/expenses`, {
  headers,
  method: 'GET',
}).then((res) => res.json());
console.dir(data, { depth: null });

That gives me this as a response:

{
  response: {
    result: { expenses: [], page: 1, pages: 323, per_page: 15, total: 4834 }
  }
}

Which is the correct counts of everything reflected in my freshbooks account, but the expense array is empty.

Same with the expense category endpoint - I get the correct counts, but no data.

{
  response: {
    result: { categories: [], page: 1, pages: 6, per_page: 15, total: 88 }
  }
}

I've tried to pass arguments like ?page=1. The counts update, but no data.

Exact same response with the Node.js SDK.

const expenseResponse = await client.expenses.list(ACCOUNT_ID);
console.log(expenseResponse.data.expenses); // []

Am I doing anything wrong? Is the API broken / supported? I noticed lots of broken code samples and images on the docs page.

Created at 3 weeks ago
API Returning Empty Array of data

Ok thank you - I've submitted this to the URL. Will close this

Created at 3 weeks ago
API Returning Empty Array of data

Hello - not sure if this is the right spot to report this as it happens with and without the Node.js API, but I figure I'd do it.

The API is authenticating me just fine. I have created an app with expenses:read and expenses:write scopes and created an auth token for my own log in.

When I call the /me endpoint, I get the account ID and then create a request like this:

const data = await fetch(`https://api.freshbooks.com/accounting/account/${ACCOUNT_ID}/expenses/expenses`, {
  headers,
  method: 'GET',
}).then((res) => res.json());
console.dir(data, { depth: null });

That gives me this as a response:

{
  response: {
    result: { expenses: [], page: 1, pages: 323, per_page: 15, total: 4834 }
  }
}

Which is the correct counts of everything reflected in my freshbooks account, but the expense array is empty.

Same with the expense category endpoint - I get the correct counts, but no data.

{
  response: {
    result: { categories: [], page: 1, pages: 6, per_page: 15, total: 88 }
  }
}

I've tried to pass arguments like ?page=1. The counts update, but no data.

Exact same response with the Node.js SDK.

const expenseResponse = await client.expenses.list(ACCOUNT_ID);
console.log(expenseResponse.data.expenses); // []

Am I doing anything wrong? Is the API broken / supported? I noticed lots of broken code samples and images on the docs page.

Created at 3 weeks ago
add space between emoji and number

Minor fix, but it's been bugging me. Adds a space between the count and the emoji. Matching the github style

Created at 3 weeks ago
[Discussion] Color theme

I agree (though I am flattered by Cobalt2) - it should use the github CSS variables.

var(--color-fg-default) --color-social-reaction-bg-hover

Created at 3 weeks ago