Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kritixilithos
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Chick Culling
(en.wikipedia.org)
2 points
by
kritixilithos
6y ago
|
0 comments
2.
▲
Symbolic Logic (1897)
(gutenberg.org)
131 points
by
kritixilithos
6y ago
|
25 comments
3.
▲
by
kritixilithos
8y ago
Actually the following is even shorter /A/{N;d;} So all together this gives the following ls|sed '/A/{N;d;}'
4.
▲
by
kritixilithos
8y ago
Nicely done using Unix utils. You can have a pure sed solution (save the `ls` invocation) that is much simpler, albeit obscure, that hinges on the fact that every number has a `data.csv` file. Given a sorted list of these files (through `ls
5.
▲
Palaeos – Life Through Deep Time
(palaeos.com)
1 points
by
kritixilithos
8y ago
|
0 comments
6.
▲
by
kritixilithos
8y ago
Reached 96 bytes (now where would that last byte be hmmmm). And as you can see, my sed skills aren't as good as yours either :) Nice meeting a fellow golfer, this was fun :)
7.
▲
by
kritixilithos
8y ago
Are you tails? Anyways, thanks for helping me tie with first place :)
8.
▲
by
kritixilithos
8y ago
There's even an implementation of lisp in sed :) https://github.com/shinh/sedlisp/
9.
▲
by
kritixilithos
8y ago
That's probably because you used BSD sed. Running it on my BSD sed also gives an error, presumably because it thinks the `}` is a part of the label in `binput}`. However it works fine in GNU sed, and now that you mention it, GNU sed&#x
10.
▲
by
kritixilithos
8y ago
As another user of iTerm2, I am currently using several keyboard mappings from key to key (like Tab being interpreted as Esc), do you know whether Kitty supports that? As far as I can see in the docs, only examples of key to action are show
11.
▲
by
kritixilithos
8y ago
Congratulations! Are you familiar with code golf? If not, I recommend it. In Code Golf, the objective is to complete a programming task in the shortest program possible, measured in bytes. While doing so, you really learn about the nuances