hohg
Re:0AD, an open source historical RTS in development for 22 years
on Saturday May 27, 2023 @02:57PM (#36097239)
Re:Gpt4free repo given takedown notice by OpenAI
on Tuesday May 02, 2023 @05:23PM (#35794405)
You're going to be paying financial damages for the rest of your life.
Re:Gpt4free repo given takedown notice by OpenAI
on Tuesday May 02, 2023 @05:15PM (#35794326)
The phrase "Who's 'we,' white man?" is a reference to a scene in the 1991 film "Grand Canyon." In the scene, a wealthy white man tries to help a stranded African American man in a dangerous part of town. The African American man responds to the white man's offer of help with the question "Who's 'we,' white man?" which is a critique of the white man's assumption that they are part of the same group. The phrase has since been used in various contexts to challenge assumptions of shared identity or experience.
Re:Ask HN: Most interesting tech you built for just yourself?
on Friday April 28, 2023 @04:46PM (#35746914)
@dang regarding pagination
// Get the anchor tag element
const anchorTag = document.querySelector('.morelink');
// Add a scroll event listener to the window object
window.addEventListener('scroll', () => {
// Check if the user has scrolled to the bottom of the page
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
// Fetch the content from the URL stored in the anchor tag's href attribute
const xhr = new XMLHttpRequest();
xhr.open('GET', anchorTag.href, true);
xhr.onload = () => {
// Append the fetched content to the page
const div = document.createElement('div');
div.innerHTML = xhr.responseText;
document.body.appendChild(div);
};
xhr.send();
}
});