Skip to content

Instantly share code, notes, and snippets.

View VirenMohindra's full-sized avatar
🤠

Viren Mohindra VirenMohindra

🤠
View GitHub Profile
[{
"_id": "5ff94de0b4f3cee3a6161dfe",
"__v": 0,
"countryCode": "ZMB",
"currencyCode": "ZMW",
"currencyName": "Zambian Kwacha",
"standardRateUSD": 150,
"premiumRateUSD": 250,
"upperLimitUSD": 375,
"isCurrencyActive": false
[{
"value": "Strategic Management",
"key": "5ebd57452778ff63a68e361c",
"title": "Strategic Management",
"beCode": 100,
"parent": 0,
"children": [{
"value": "Business Concept and Strategic Vision",
"key": "5ebd57452778ff63a68e361d",
"title": "Business Concept and Strategic Vision",
[{
"value": "English",
"key": "en",
"title": "English",
"parentCode": "global",
"bcp47Code": "en",
"children": [{
"value": "India",
"key": "en-IN",
"title": "India",
[{
"id": "5b4ea971b087cc25e80837fe",
"text": "Afghanistan",
"isCountry": true,
"countryCode": "AFG"
}, {
"id": "5b4ead00b087cc25e8083801",
"text": "Albania",
"isCountry": true,
"countryCode": "ALB"
[{
"value": "Energy",
"key": "10",
"title": "Energy",
"gicsCode": "10",
"parent": "0",
"children": [{
"value": "Energy",
"key": "1010",
"title": "Energy",
@VirenMohindra
VirenMohindra / gist:254e4b5aafdd64e8f5c4339f31944c23
Created March 26, 2021 11:01
To navigate to a certain userID, you'll need to append the parameter in this URL: https://news.ycombinator.com/user?id=[userId] or for HN Link: https://news.ycombinator.com/item?id=[itemId]
Date,Title,Link,userID,userID Age,New Account?,Number of Points,HN Link
25/3/2021,"Nationwide tells 13,000 staff to 'work anywhere'",https://www.bbc.co.uk/news/business-56510574,CraigJPerry,1379960218,FALSE,137,26577355
25/3/2021,Gödel's Loophole,https://en.wikipedia.org/wiki/gödel%27s_loophole,pepys,1413223810,FALSE,128,26577062
25/3/2021,New Alan Turing £50 note design is revealed,https://www.bbc.co.uk/news/business-56503741,aries1980,1413658203,FALSE,150,26577349
25/3/2021,Lawyers used sheepskin as anti-fraud device for hundreds of years,https://phys.org/news/2021-03-lawyers-sheepskin-anti-fraud-device-hundreds.html,jnord,1285749370,FALSE,306,26575327
25/3/2021,DeaDBeeF Player: Multi-platform foobar200-like player,https://deadbeef.sourceforge.io/,marcodiego,1389980108,FALSE,154,26576740
25/3/2021,RoadPony is a new way to support musicians by crowdsourcing concerts,http://www.roadpony.com,corkinn,1616641780,TRUE,139,26576151
25/3/2021,Where are all the containers? The global shortage explained,https://www.h
from github import Github
import csv
import re
import requests
from datetime import datetime, timedelta
g = Github("access_token")
REPO_NAME = 'xueyuanl/daily-hackernews'
FILE_NAME = "hn25.csv"
@VirenMohindra
VirenMohindra / hackernews-daily.csv
Created March 25, 2021 23:24
To navigate to a certain userID, you'll need to append the parameter in this URL: https://news.ycombinator.com/user?id=[userId]
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 9 columns, instead of 3. in line 5.
Date,Title,Link,userID,userID Age,New Account?,Number of Points,Number of Comments,HN Link
2021-03-25,Google Removed ClearURLs Extension from Chrome Web Store,https://github.com/clearurls/addon/issues/102,URfejk,1594991360,False,781,350,https://news.ycombinator.com/item?id=26564638
2021-03-25,Reddit’s most popular subreddits go private in protest against ‘censorship’,https://www.gamerevolution.com/news/677190-reddit-private-community-aimee-challenor-censorship,LordAtlas,1530298902,False,505,483,https://news.ycombinator.com/item?id=26568960
2021-03-25,Show HN: I wrote a book about Go,https://www.practical-go-lessons.com/,maximilienandi,1616588197,False,486,104,https://news.ycombinator.com/item?id=26568014
2021-03-25,'Do Not Split': A Hong Kong protest film [video,https://fieldofvision.org/do-not-split,lawrenceyan,1493691021,False,449,222,https://news.ycombinator.com/item?id=26567756
2021-03-25,Firefox 87 introduces SmartBlock for Private Browsing,https://blog.mozilla.org/security/2021/03/23/introducing-smartbl
from github import Github
import csv
import re
import requests
from datetime import datetime, timedelta
g = Github("access_token")
REPO_NAME = 'headllines/hackernews-daily'
FILE_NAME = "hackernews-daily.csv"
@VirenMohindra
VirenMohindra / hackernews-daily.csv
Created March 25, 2021 21:29
To navigate to a certain userID, you'll need to append the parameter in this URL: https://news.ycombinator.com/user?id=[userId]
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 7 columns, instead of 2. in line 6.
Date,Title,Link,userID,Number of Points,Number of Comments,HN Link
25/3/2021,Google Removed ClearURLs Extension from Chrome Web Store,https://github.com/clearurls/addon/issues/102,URfejk,781,350,https://news.ycombinator.com/item?id=26564638
25/3/2021,Reddit’s most popular subreddits go private in protest against ‘censorship’,https://www.gamerevolution.com/news/677190-reddit-private-community-aimee-challenor-censorship,LordAtlas,505,483,https://news.ycombinator.com/item?id=26568960
25/3/2021,Show HN: I wrote a book about Go,https://www.practical-go-lessons.com/,maximilienandi,486,104,https://news.ycombinator.com/item?id=26568014
25/3/2021,'Do Not Split': A Hong Kong protest film [video,https://fieldofvision.org/do-not-split,lawrenceyan,449,222,https://news.ycombinator.com/item?id=26567756
25/3/2021,Firefox 87 introduces SmartBlock for Private Browsing,https://blog.mozilla.org/security/2021/03/23/introducing-smartblock/,elktea,352,110,https://news.ycombinator.com/item?id=26565780
25/3/2021,The Python Package In