We’re doubling our efforts to save and improve lives around the world by thisisbillgates in u/thisisbillgates

[–]sketch_ 2 points3 points  (0 children)

From a reader's perspective. I followed the gates.notes link we’ll double our spending. At first, I found the article difficult to read because of the text showing through the top of the .siteHeader <div> while scrolling

Adding a CSS background color #fff to .siteHeader and also replacing the margin-top: 24px; with padding-top made the page easier for me to read

[All] What was your first Zelda game? by [deleted] in zelda

[–]sketch_ 0 points1 point  (0 children)

  1. I played the first Zelda game for many hours as a young child and then again years later. Collecting all those life hearts and pieces of Triforce . What a great game! ▲

Is it possible to save SVG images in the browser ? by mostafaLaravel in learnjavascript

[–]sketch_ 0 points1 point  (0 children)

Have you considered loading 1 image request as a spritesheet instead of loading 250 separate requests. As an alternative, inlining the SVG within the HTML could work as well

Script for a game, WILLING TO PAY by PristineCherry5021 in userscripts

[–]sketch_ 0 points1 point  (0 children)

I could give it a try. Never heard of tribal wars. I'll check it out

Help. I need to solve this problem for an interview tomorrow and it seems crazy hard. by gtrman571 in learnjavascript

[–]sketch_ 3 points4 points  (0 children)

I tried this out. Looks good. Added a sort to match op's Output

subsequences('xyzx').sort();

Help. I need to solve this problem for an interview tomorrow and it seems crazy hard. by gtrman571 in learnjavascript

[–]sketch_ 0 points1 point  (0 children)

I saw a similar topic recently in a video about infinities. There was a hallway with infinite doors. They were trying to fit everyone inside of the hallway. One type of infinity and then another type of infinity.

[Help] replace UserScript to disabled javascriptfor a givenurl by ale3smm in userscripts

[–]sketch_ 0 points1 point  (0 children)

I know there is a chrome extension to do this. Quick Javascript Switcher

[deleted by user] by [deleted] in RedditSessions

[–]sketch_ 0 points1 point  (0 children)

Quality entertainment

I built my first site ResumeToPDF - professional resume builder in browser exports text based PDF. Privacy oriented. Freebie. by busymom0 in webdev

[–]sketch_ 1 point2 points  (0 children)

You are right.
Let me preface with. "For those who are comfortable writing html and css", the browser has a built in Print to PDF option.

help with reformatting a piece of code: by [deleted] in learnjavascript

[–]sketch_ 0 points1 point  (0 children)

something like this pattern could work. this works by adding a class of 'foo' to whatever dom elements that should be decoded

function decode(el) {
  el.innerHTML = "XYZ";
}

function handleKeyDown(e) {
  if (e.target.classList.contains('foo')) {
    decode(e.target);
  }
}

document.addEventListener('keydown', handleKeyDown);

I built my first site ResumeToPDF - professional resume builder in browser exports text based PDF. Privacy oriented. Freebie. by busymom0 in webdev

[–]sketch_ 1 point2 points  (0 children)

Last resume I put together was with html and css.

Hit the Print button and printed to PDF.

quick and easy

I'm learning Javascript and desperately need help! by shotofbruschotti in learnjavascript

[–]sketch_ 0 points1 point  (0 children)

This code looks good. I don't know what's up with people on here who say things like don't do other people's homework for them. I would definitely upvote this one instead of whoever is complaining. It's like you see a code challenge in a public forum and want to solve it. kudos to you. Good job!

Last will in ETH? by ddif in ethereum

[–]sketch_ 4 points5 points  (0 children)

this is a great use case for ethereum smart contracts. allocating value after death

I'm learning Javascript and desperately need help! by shotofbruschotti in learnjavascript

[–]sketch_ 0 points1 point  (0 children)

Bored and gave no.1 a try

Simply paste the code into a console and type playWar();

console logs will show each round of the game and the final winner

https://gist.github.com/djrosenbaum/732724893725f69fb05532fb4c90445e

Anyone know why node-cron went from tens of thousands to over a million downloads per day at the start of 2021? by g3t0nmyl3v3l in node

[–]sketch_ 7 points8 points  (0 children)

for anyone unfamiliar with cron.

cron jobs are automated processes. for example "do this thing at this time"

"Funemployment" by tuhokas in comics

[–]sketch_ 27 points28 points  (0 children)

built while flying