Skip to content

Instantly share code, notes, and snippets.

View VirenMohindra's full-sized avatar
🤠

Viren Mohindra VirenMohindra

🤠
View GitHub Profile
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
@VirenMohindra
VirenMohindra / recipe10000.json
Created May 10, 2020 13:23
First 10,000 recipes from NYT Cooking (9704 total)
This file has been truncated, but you can view the full file.
[
{"category": "easy, quick, salads and dressings", "cuisine": "", "description": "", "title": "Georgia Pecan Turkey Salad", "original_url": "/recipes/10-georgia-pecan-turkey-salad", "author": "Florence Fabricant", "keywords": "pecans, turkey", "uid": "10"},
{"category": "quick, condiments, roasts", "cuisine": "", "description": "Here is the basic recipe for a reduction sauce, the easiest, most malleable sauce a cook can make. It\u2019s followed by a variation for those who want a thicker, more traditional gravy, and a few ideas for jazzing it up. The basic recipe can be doubled or tripled, something to consider for larger feasts.", "title": "Basic Reduction Sauce", "original_url": "/recipes/9-basic-reduction-sauce", "author": "Mark Bittman", "keywords": "beef stock, chicken stock, turkey stock, fall", "uid": "9"},
{"category": "dinner, main course", "cuisine": "", "description": "", "title": "Curried-Beef Skewers", "original_url": "/recipes/12-curried-beef-skewers", "author": "Molly O'Neill", "keywords": "be
<?xml version="1.0" encoding="UTF-8"?>
<rss
xmlns:dc="http://purl.org/dc/elements/1.1"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>
<![CDATA[Company global feeds]]>
</title>
<description>
@VirenMohindra
VirenMohindra / brute-force.csv
Last active April 15, 2020 13:40
Brute-Force Attacks on one of my crypto wallets
S. No IP Address Country of Origin Date of Attack BTC Price
1 216.165.95.6 United States 30 Apr 2017, 17:12 1,321.87
2 61.18.97.39 Hong Kong 17 Aug 2018, 03:09 6,340.91
3 176.33.229.167 Turkey 10 Sep 2018, 23:39 6,301.57
4 88.1.155.134 Spain 10 Sep 2018, 23:41 6,301.57
5 37.6.0.131 Greece 11 Sep 2018, 00:06 6,331.88
6 223.19.171.15 Hong Kong 11 Sep 2018, 00:08 6,331.88
7 37.201.193.252 Germany 11 Sep 2018, 00:12 6,331.88
8 196.188.127.199 (Unknown) 11 Sep 2018, 00:15 6,331.88
9 5.187.70.211 Russian Federation 11 Sep 2018, 00:18 6,331.88
@VirenMohindra
VirenMohindra / hk-01-03-2020.json
Created March 31, 2020 18:13
Hong Kong Startups
{
"data": {
"list": [{
"id": "55497",
"name": "COINQVEST",
"slug": "coinqvest",
"raised_amount": "0",
"market": "[[\"Blockchain\",\"Finance\"]]",
"location": [{
"id": "c447",
@VirenMohindra
VirenMohindra / eps.csv
Created March 6, 2020 02:23
non comprehensive list of EPS of US tickers from jan-01-2020 to mar-04-2020
S. No Symbol Company Earning Calls Time Estimated EPS Reported EPS Surprise %
1 RECN Resources Connection Inc TAS 0.3 0.38 26.67
2 LNDC Landec Corp TAS -0.06 -0.16 -166.67
3 LW Lamb Weston Holdings Inc TAS 0.84 0.95 13.1
4 CMC Commercial Metals Co TAS 0.54 0.73 35.19
5 CALM Cal-Maine Foods Inc TAS 0.03 -0.21 -800
6 ANGO AngioDynamics Inc TAS 0.02 0.06 200
7 NTIC Northern Technologies International Corp Before Market Open 0.13 0.13 0
8 ADMS Adamas Pharmaceuticals Inc After Market Close -0.85 -0.83 2.35
9 WBA Walgreens Boots Alliance Inc TAS 1.41 1.37 -2.84
@VirenMohindra
VirenMohindra / The Technical Interview Cheat Sheet.md
Created October 22, 2018 23:55 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@VirenMohindra
VirenMohindra / .eslintrc.js
Created October 13, 2018 15:40
.eslintrc
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"nconf": true
},
"parser": "babel-eslint",
@VirenMohindra
VirenMohindra / README.md
Created October 2, 2018 02:41 — forked from lacostenycoder/README.md
Ruby script to toggle night-mode hack on Slack Desktop app - Mac only, maybe linux

- IMPORTANT

For security, since this script injects CSS via AJAX, first fork the main slack night mode repo. The reason is explained here

Installation

  • save this script wherever you keep your ruby scripts for example ~/lacostenycoder/scripts/ruby/
  • change the URL in the ruby script to use YOUR repo. The rawgit.com file is created when you fork the repo.
  • For non-MacOS, find where the slack files are and replace line 17 to point to correct path, thanks simbalinux so you would change line 17 for ubuntu like this
  • @file_target = '/usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js'