Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2021-12-09 00:00:00Z and 2021-12-10 00:00:00Z
Avatar
with the lava puzzle, for these recursive approaches, I always instantly declare an extra array of booleans where I check if I already was at this index to avoid repetition. I wonder if this is the common way to do it
Avatar
memoization?
Avatar
im getting the example correct but with my input it doesnt work
07:38
💀
Avatar
got the first part xd
07:54
lol this is surprising
07:54
We will be retiring Alexa.com on May 1, 2022
07:54
Avatar
ravenstine 11 hours ago | prev | next [–]
>
Are there any alternatives? I enjoy watching the long-term decline of the websites of former employers I don't like.
07:55
xd
Avatar
fa977bb Fix UUID messages unpack on demo playing - Kaffeine cad00f7 Add a config var to toggle colors enablement for the console output - Kaffeine 57e16f3 CEntity: Make NetworkClipped() const - Kaffeine d832800 Server: Implement a 'reason' argument for Console Shutdown - Kaffeine 9bfbad7 Merge #4431 - bors[bot]
08:02
08:04
fc37461 Add masterstats scripts - def-
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
Avatar
chillerdragon
Do you golf index?
eh sure :> (143 Bytes) #!/bin/bash shopt -s lastpipe; for l in `cut -d'|' -f2 "$1" | xargs | tr ' ' '\n'`; do [[ "2 4 3 7" =~ "${#l}" ]] && i=$((i+1)); done; echo $i (edited)
19:04
btw that didnt work for today, but somehow i have a p1 solution :> #!/bin/bash # Advent of Code 9p1 shopt -s lastpipe declare -A f i=0 while read -r l; do for j in {0..99}; do f[$i,$j]=${l:$j:1}; done i=$((i+1)) done < "$1" for i in {0..99}; do for j in {0..99}; do l=${f[$i,$j]} if [ -z ${f[$((i-1)),$j]} ] || [[ ${f[$((i-1)),$j]} -gt $l ]]; then if [ -z ${f[$((i+1)),$j]} ] || [[ ${f[$((i+1)),$j]} -gt $l ]]; then if [ -z ${f[$i,$((j-1))]} ] || [[ ${f[$i,$((j-1))]} -gt $l ]]; then if [ -z ${f[$i,$((j+1))]} ] || [[ ${f[$i,$((j+1))]} -gt $l ]]; then [ -z $l ] && continue a=$((a + l + 1)) fi fi fi fi done done echo $a
monkaS 2
Avatar
that looks so complicated
Avatar
Adopt the vanilla color scheme for scrollbars, making the rails white instead of black for increased visibility. Fix the calculation of the handle size, so it is consistent with vanilla, making the handles slightly smaller compared to before. Minor refactoring / style changes.

Screenshots (before, after)

!screenshot_2021-12-09_22-52-20 ![screenshot_2021-12-09_22-54-59](ht...
Avatar
0ff313b adopt vanilla scrollbar colors and code style - Robyt3 fff1272 Merge #4433 - bors[bot]
Exported 26 message(s)