Skip to content

Instantly share code, notes, and snippets.

View VirenMohindra's full-sized avatar
🤠

Viren Mohindra VirenMohindra

🤠
View GitHub Profile
@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
@VirenMohindra
VirenMohindra / nyt_recipes.csv
Created May 10, 2020 13:28
20,300 recipes from NYT Cooking - Last Updated Sunday May 10, 2020 (4 deleted)
We can't make this file beautiful and searchable because it's too large.
category,cuisine,description,original_url,author,keywords,title,uid
"dinner, beans, vegetables, main course",american,"Creamy but not overtly rich, this simple preparation of earthy vegetables is infused with the flavor of salty, homemade <a href=""https://cooking.nytimes.com/recipes/1020934-parmesan-broth"">Parmesan broth</a> — but it’s adaptable, and could also be made using vegetable or chicken stock. If fennel isn’t your thing, try this with celery stalks or parsnips. If you are preparing the puréed beans ahead of time, keep them moist when you reheat them by adding a small splash of Parmesan broth or stock to the saucepan and stirring until warm. This deeply comforting dish can be prepared days in advance and assembled and served within minutes.",/recipes/1020935-braised-fennel-with-white-bean-puree,Julia Sherman,"fall, winter, fennel, garlic, parmesan, shallot, white beans",Braised Fennel With White Bean Purée,1020935
"dinner, soups and stews, main course, side dish",indian,"Dal can be made with all kin
[{
"_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 / survey_monkey.py
Created November 27, 2018 15:41
Auto votes in surveys on survey monkey.
"""Requires Selenium"""
from selenium import webdriver
CHROME_OPTIONS = webdriver.ChromeOptions()
CHROME_OPTIONS.add_argument("--incognito")
CHROME_OPTIONS.add_argument("--headless")
COUNT = 0
MAX_VOTES = 150
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