« first day (4888 days earlier)      last day (273 days later) » 

9:16 AM
Dear git gurus, this answer shows how to get my last pushed commit id. I assume this is from local machine. Will the same principles apply on a ci/cd pipeline job? 🤔
9:33 AM
I realize that gitlab does this in some fashion. I am only curious if there is a git-cli way to achieve this. Happy to elaborate if anyone curious.
 
12 hours later…
9:52 PM
@deostroll, sorry cant help you there, did you try stackoverflow ai stackoverflow.com/ai/search
10:45 PM
linkedin seem to be venturing onto stackoverflows territory
Fetch API Fundamentals: Streaming Data over HTTP
Example 2: Streaming Text Data
fetch('https://example.com/streaming-text')
  .then(response => {
    const reader = response.body.getReader();
    return new ReadableStream({
      start(controller) {
        function push() {
          reader.read().then(({ done, value }) => {
            if (done) {
              controller.close();
              return;
            }
            controller.enqueue(value);
            push();
          });
        }
        push();
      }
    });
  })
  .then(stream => {
    const textStream = new TextDecoder().decodeStream(stream);
@mattrichards Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
                var res       = await fetch('https://example.com/streaming-text');
                var reader    = res.body.getReader();
                var text      = new TextDecoder();
                while(true){
                      var {done,value}    = await reader.read();
                      if(done)return;
                      console.log(text.decode(value));
                }//while

« first day (4888 days earlier)      last day (273 days later) »