Skip to content

Instantly share code, notes, and snippets.

View VirenMohindra's full-sized avatar
🤠

Viren Mohindra VirenMohindra

🤠
View GitHub Profile
@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'
@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 / 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 / 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
@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 / 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 / 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
<?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 / 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
@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