Recent submissions

Comment · 1 month ago
Comment · 9 months ago
that's not how it works for me in MacOS Tahoe, the sidebar works as it should now.
Comment · 1 year ago
did you think about using Effect.ts as the backend? i'm interested in pros/cons there
Comment · 1 year ago
mind typing this up? i've got a basic GPT -> Claude workflow going for now
Comment · 1 year ago
Make sure the create the segment_array.h file. Mine outputted just fine on Mac M4

  Desktop gcc main.c        
  Desktop ./a.out 
entities[0].a = 1 entities[0].a = 1 entities[1].a = 2
Comment · 1 year ago
is there any tool for p2p audio? something to communicate with friends while gaming would be cool
Comment · 1 year ago
sometimes life just delivers. was looking for this 2 days ago
Comment · 3 years ago
thanks! not used to the HN code comments. fixed it
Comment · 3 years ago
here's a script that will highlight previously visited squares as red. as a nice bonus it replaces the instructions with more accurate ones

  // Get all square elements
  squareElements = [...document.querySelectorAll("[data-testid='white-square']"), ...document.querySelectorAll("[data-testid='black-square']")];
  
  // create array of elements that have been landed on
  // these need to be set to red every time because the board resets every move
  let modifiedElements = [];
  observer = new MutationObserver(function (mutations) {
    mutations.forEach(function (mutation) {
      if (mutation.addedNodes.length > 0) {
        mutation.addedNodes.forEach(function(addedNode) {
          key = addedNode.getAttribute('data-testid').split('-')[1];
          if (!modifiedElements.includes(key)) {
            modifiedElements.push(key);
          }
          for (let i = 0; i < modifiedElements.length; i++) {
            el = squareElements.find(e => {
              return e.getAttribute('data-squareid') === modifiedElements[i]
            })
            el.style.backgroundColor = 'red';
          }
        });
      }
    });
  });
  
  // observe all square elements
  for (let i = 0; i < squareElements.length; i++) {
    observer.observe(squareElements[i], { childList: true, subtree: true });
  }
  
  // replace instructions with more accurate instructions
  instructions = document.querySelector('section p')
  instructions.innerHTML = 'Move to the square indicated below the board without moving to a square the queen can capture and without capturing the queen. Once accomplished a new square will be indicated. Repeat until all possible squares are done.';
Comment · 5 years ago
I was thinking of developing a website that helps you analyze your games vs naroditsky's games. let me know if you have any ideas on what would be useful.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton