HackerTrans
トップ新着トレンドコメント過去質問紹介求人

procparam

no profile record

投稿

Show HN: Sndscr.wtf – live-updating public "screens"

sndscr.wtf
3 ポイント·投稿者 procparam·3 年前·0 コメント

コメント

procparam
·2 年前·議論
Wow. The idea of getting to 100% on PE is almost incomprehensible to me. I've solved basically none outside the first couple pages.

What was your strategy like? How much math background do you have?
procparam
·2 年前·議論
I've always wanted something like this, but for i3 workspaces. Something like "share workspace 2." Anyone know how to accomplish this?
procparam
·2 年前·議論
My friends and I have played so much already that the list of elements on the sidebar is unwieldy. You can paste this little js snippet into the console to add a basic search feature

  items = () => [...document.querySelectorAll('.items div.item')]
  show = (elt) => elt.style.display=''
  hide = (elt) => elt.style.display='none'
  search = (text) => (items().forEach(show), items().filter(e => !e.innerText.toLowerCase().includes(text.toLowerCase())).forEach(hide))
  inputElt = document.createElement('input'); inputElt.type='text';
  document.querySelector('.sidebar').prepend(inputElt)
  function handle(e) { search(e.target.value) }
  inputElt.addEventListener('input', handle)