Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dzwdz@fleshwing:/tmp/lobs$ diff -C 1 old.txt new.txt
- *** old.txt 2024-09-05 19:23:38.578576138 +0200
- --- new.txt 2024-09-05 19:21:49.901014371 +0200
- ***************
- *** 17,19 ****
- . 2 For me it's missing only one thing, which is to support dark mode via a CSS
- - . 2 I love it! Looks great on both my desktop and phone, and it isn't weighed d
- . . 2 I brought back dark mode, new and improved. Can you let me know what you
- --- 17,18 ----
- ***************
- *** 22,23 ****
- --- 21,23 ----
- . . 1 Someone made one but there was something slightly wrong about pre tags in
- + . 2 I love it! Looks great on both my desktop and phone, and it isn't weighed d
- . . 1 Oh, that is good to hear. I do not regularly check up on how it looks on
- ***************
- *** 45,47 ****
- 26 My site's at https://jacky.wtf - definitely curious.
- - . 7 Linux/Desktop (1920x1080, 16:9)/Chromium with uBlock
- . 21 I dislike political stuff so I closed the tab right after the font loaded,
- --- 45,46 ----
- ***************
- *** 54,55 ****
- --- 53,55 ----
- . . . . 12 The first blog-post of the person is "I enforced the AGPL on my code
- + . 7 Linux/Desktop (1920x1080, 16:9)/Chromium with uBlock
- . 4 I like the simplicity of the design.
- ***************
- *** 379,382 ****
- 1 i recently redesigned my website https://bkkaggle.github.io to be a lot more
- - 1 Here's mine: https://utsavshah.com/
- . 2 I like it because it has a very distinctive design language, that reminds m
- . 1 Reviewed on iPhone X.
- --- 379,382 ----
- 1 i recently redesigned my website https://bkkaggle.github.io to be a lot more
- . 2 I like it because it has a very distinctive design language, that reminds m
- + 1 Here's mine: https://utsavshah.com/
- . 1 Reviewed on iPhone X.
- ***************
- *** 498,502 ****
- 1 Hi all! My site's at https://apas.gr and the blog at https://apas.gr/posts -
- - 1 Cool idea! Curious to see what folks think: http://cdaniels.net/
- . 2 It looks quite nice, I guess it's heavily inspired by the tufte layout? Fo
- . . 2 Thanks. Yes, indeed it's based on Tufte layout. In fact, [I built a minim
- . 2 Nice and simple.
- --- 498,502 ----
- 1 Hi all! My site's at https://apas.gr and the blog at https://apas.gr/posts -
- . 2 It looks quite nice, I guess it's heavily inspired by the tufte layout? Fo
- . . 2 Thanks. Yes, indeed it's based on Tufte layout. In fact, [I built a minim
- + 1 Cool idea! Curious to see what folks think: http://cdaniels.net/
- . 2 Nice and simple.
- here's the stupid script:
- import json
- import sys
- import collections
- data = json.load(sys.stdin)
- def display(c):
- print((
- '. ' * c['depth'] +
- str(c['score']) +
- ' ' +
- c['comment_plain'].split('\n')[0]
- )[:80])
- if True: # change this to use the new/old order
- for c in data['comments']:
- display(c)
- exit()
- # let's sort in the new order
- cd = dict()
- tree = collections.defaultdict(list)
- for c in data['comments']:
- cd[c['short_id']] = c
- tree[c['parent_comment']].append(c['short_id'])
- def display_tree(root):
- if root != None:
- display(cd[root])
- children = tree[root]
- tree[root].sort(key=lambda k: cd[k]['score'] - cd[k]['flags'], reverse=True)
- for child in tree[root]:
- display_tree(child)
- display_tree(None)
Advertisement
Add Comment
Please, Sign In to add comment