Umar Hansa
Umar Hansa
  • 31
  • 209 427
AI Video summaries: this will change how we consume videos!
Code and instructions are here: umaar.com/dev-tips/271-ai-video-summaries/
If you want more tips like delivered straight to your inbox, make sure you sign up for the Dev Tips mailing list: umaar.com/dev-tips/
zhlédnutí: 1 356

Video

Consume Web streams from OpenAI using vanilla JavaScript - NO DEPENDENCIES!
zhlédnutí 2,5KPřed rokem
Find the code here: umaar.com/dev-tips/269-web-streams-openai/ and while you're there, signup for the Dev Tips mailing list to get more videos and tips like this one! Chapters: 00:00:00 - What we're going to achieve 00:01:30 - Making a Fetch Request 00:03:01 - Non-streamed data 00:03:50 - Streaming the data 0:05:20 - Decoding Streamed Data 0:09:43 - Running the Script with Node JS 0:10:58 - Add...
Understanding Paint Performance with Chrome DevTools
zhlédnutí 7KPřed 4 lety
Understanding Paint Performance with Chrome DevTools
Exploring the Frontend Performance of the National Rail Website with Chrome DevTools
zhlédnutí 13KPřed 4 lety
Exploring the Frontend Performance of the National Rail Website with Chrome DevTools
Making images lazy load with Chrome DevTools
zhlédnutí 4,3KPřed 4 lety
Making images lazy load with Chrome DevTools
Accessibility debugging with Chrome DevTools
zhlédnutí 5KPřed 6 lety
Accessibility debugging with Chrome DevTools
Improving page performance with Chrome DevTools
zhlédnutí 42KPřed 6 lety
Improving page performance with Chrome DevTools
Modern DevTools: A better authoring workflow
zhlédnutí 3,6KPřed 6 lety
Modern DevTools: A better authoring workflow
Modern DevTools: Running a performance profile on the YouTube search box
zhlédnutí 23KPřed 6 lety
Modern DevTools: Running a performance profile on the CZcams search box
Cloud Vision API: Hear what your phone sees with image detection from a webpage
zhlédnutí 2,1KPřed 7 lety
Cloud Vision API: Hear what your phone sees with image detection from a webpage
An Introduction to Browser Rendering
zhlédnutí 29KPřed 8 lety
An Introduction to Browser Rendering
How CSS and JavaScript can affect page rendering
zhlédnutí 7KPřed 8 lety
How CSS and JavaScript can affect page rendering
DevTools: Embedded docs proof of concept
zhlédnutí 563Před 11 lety
DevTools: Embedded docs proof of concept

Komentáře

  • @Atanepes
    @Atanepes Před dnem

    Hey bro what about js part? Are there ways to do that?

  • @theeFaris
    @theeFaris Před 10 dny

    fantastic, a super simple minimalistic and working code

  • @rhysm8167
    @rhysm8167 Před měsícem

    Brilliant. Awsome mate. Thank you.

  • @wboumans
    @wboumans Před měsícem

    Thx, just what i needed!

  • @MajinObama
    @MajinObama Před 4 měsíci

    Thank you so much 😭

  • @deckyzulkarnaen6234
    @deckyzulkarnaen6234 Před 4 měsíci

    full video pleasee

  • @ianurbina9777
    @ianurbina9777 Před 7 měsíci

    Thanks Umar!

  • @ianurbina9777
    @ianurbina9777 Před 7 měsíci

    Thanks Brother!

  • @ianurbina9777
    @ianurbina9777 Před 7 měsíci

    Thanks!

  • @nested9301
    @nested9301 Před 8 měsíci

    _

  • @zeffali
    @zeffali Před 9 měsíci

    thanks man thanks I need to redesign a website under 4 hours this gonna help am sure

  • @wobsoriano
    @wobsoriano Před 9 měsíci

    Awesome vid. Only thing that'll stop me from doing open ai requests in the browser is exposing the API keys. That's why I always end up using a server so I can authenticate a user and not expose API keys + Server Sent events

  •  Před 9 měsíci

    This is amazing useful!!!

  • @personalemail6268
    @personalemail6268 Před 10 měsíci

    you cant do this for most website you want to copy from, it jst gives you inherited values unable to copy the styles #

  • @jimshtepa5423
    @jimshtepa5423 Před 10 měsíci

    what is the plugin that shows you content of console.log?

  • @looperrrr
    @looperrrr Před 10 měsíci

    Nice one!

  • @zes7215
    @zes7215 Před 11 měsíci

    wrr

  • @michaeldausmann6066
    @michaeldausmann6066 Před 11 měsíci

    nice content, well explained. for await is cool. also the destructuring of the json was interesting, I haven't used that before, nice exposition.

  • @ashobiz
    @ashobiz Před 11 měsíci

    Watched all of your performance videos. Very helpful. No other channel has such quality videos about performance. Waiting for more.

  • @krishnarammoorthyvenkatash4881

    Ur video changed my life completely... I am not kidding even 1%. I did not know the concept and power of chatgpt until I came across your video... I immediately signed up for chatgpt and my life as a developer changed completely for the best. You brought a major turning point in my life... I am forever grateful to u... ❤❤❤

  • @imac_
    @imac_ Před rokem

    0:11 nice

  • @Mojit00
    @Mojit00 Před rokem

    There is a website which has really cool animations and design and i wanna use some for my own website... How can i copy the animations and other html stuff for particular parts?

  • @sashirestela8572
    @sashirestela8572 Před rokem

    For demo it is fine to call the OpenAI endpoint from the web side, but it is bad for other purposes because your API Key remains exposed to being stolen easily. It is more recommended to made the call on the server side, IMHO.

  • @arvindbega4762
    @arvindbega4762 Před rokem

    ☺️ "promo sm"

  • @TheHemiThompson
    @TheHemiThompson Před rokem

    Exactly what I needed I have been copying a website I liked and finding and deleting code manually going back and forth between vs and chrome. Wow lifesaver lol

  • @yuli3873
    @yuli3873 Před rokem

    I can't use it in Edge: "Uncaught TypeError: copy is not a function at <anonymous>"

  • @theptrk
    @theptrk Před rokem

    This couldve saved me an entire weekend digging through the code.

  • @user-yf8hr1fe5u
    @user-yf8hr1fe5u Před rokem

    Great tutorial! One wired bug that I've encountered if anyone is interested (not in the video) The 1st text content is missing. It turned out that, the 1st chunk in my response body contains 2 data pieces (just like the last one), and the 1st piece which looks like this "choices":[{"delta":{"role":"assistant"},"index":0,"finish_reason":null}] has no "content" property in "delta" and should be excluded like the "data: [DONE]".

  • @umjames
    @umjames Před rokem

    Reminds me of the bundle analyzer plug-in in Webpack

  • @kedarpethe
    @kedarpethe Před rokem

    You have the best quality videos for javascript and cutting edge technology... Thanks... Keep uploading javascript videos.... Pls put all links in the description

  • @andypsolomon
    @andypsolomon Před rokem

    Umar, this is golden

  • @krzysztofkk6964
    @krzysztofkk6964 Před rokem

    I'd love to have a docker setup for this.

  • @VipulAnand751
    @VipulAnand751 Před rokem

    Thanks Umar

  • @osoh
    @osoh Před rokem

    This is a really cool video. Thanks for showing the prompt that gets used for the interaction. Will definitely check out the repo.

  • @pauljohnsonbringbackdislik1469

    Great way to avoid waiting for graphic designers 👍 But Apple devices... 💩 I would rather keep my sanity

  • @swaminarayansharma1921

    Helpful

  • @Dariansweb
    @Dariansweb Před rokem

    Is that an extension? Thanks for doing this

  • @_nikeee
    @_nikeee Před rokem

    If the API would work with GET instead of POST, you could just use EventSource, since streaming just seems to be SSE in this case

  • @theclarkofben84
    @theclarkofben84 Před rokem

    Nice work, man

  • @sergiomartin8935
    @sergiomartin8935 Před rokem

    Great!

  • @vlkf
    @vlkf Před rokem

    3:04 - what plugin shows this 2letter hotkeys to be able to navigate to any place in code? I wonder can i found same for jetBrains ide

  • @beernutz
    @beernutz Před rokem

    Very cool video! Thank you! What is your coding setup? It looks like a bit more than autocomplete going on there.

    • @UmarHansa
      @UmarHansa Před rokem

      Thanks! VS Code with Zen mode on, dracula theme, and GitHub CoPilot. Browser is Firefox DevTools

  • @elliotjunemusic
    @elliotjunemusic Před rokem

    SOOOO badaasss, omg - Is see practical ways I could use that - didn't even know streaming was that ... simple in a sens (obvisouly considering the API you're consuming)

  • @islamabo0
    @islamabo0 Před rokem

    Your videos are the best. I don't miss videos nor shorts ❤

  • @ahmad-murery
    @ahmad-murery Před rokem

    Very interesting example, I like doing my things using vanilla JS as much as I can. It will be very useful if you can explain more browser's web APIs. Thanks Umar👍🚀

    • @UmarHansa
      @UmarHansa Před rokem

      Browsers are a lot more capable now! I'll try and cover more vanilla JS techniques soon, thank you Ahmad!

    • @ahmad-murery
      @ahmad-murery Před rokem

      @@UmarHansa I'll be waiting patiently

  • @johnm8358
    @johnm8358 Před rokem

    Nice, love your videos

  • @UmarHansa
    @UmarHansa Před rokem

    00:01:30 - Making a Fetch Request 00:03:01 - Non-streamed data 00:03:50 - Streaming the data 0:05:20 - Decoding Streamed Data 0:09:43 - Running the Script with Node JS 0:10:58 - Adding an Abort Controller 0:12:17 - Recap of Fetch API Streaming 0:12:47 - Conclusion and recap

  • @easypezee
    @easypezee Před rokem

    can we use async await for RxJs catchError function also?

  • @ahmad-murery
    @ahmad-murery Před rokem

    I wasn't aware of the "i" flag. Thanks Umar, that was a very nice refresher👍

  • @pauljohnsonbringbackdislik1469

    Nice... Good for getting shit done. But I will stick to my custom component with error handling and loading indicator.