Skip to content

Instantly share code, notes, and snippets.

View eaglewarrior's full-sized avatar
👩‍💻
Building Scalable Efficient AI

RINKI NAG eaglewarrior

👩‍💻
Building Scalable Efficient AI
View GitHub Profile
@mohitkh7
mohitkh7 / blockchain.py
Last active January 21, 2022 05:33
Workshop on blockchain - Scipy 2021
"""
Exercises:
Try to change difficulty level in proof of work algorithm and see how long does it takes to compute nonce.
Write a method to validate the chain.
Reward the mining node.
"""
# blockchain.py
import hashlib

How to prepare for technical interviews at companies like Amazon, Flipkart, Google, Microsoft, Swiggy, Uber, etc?

Interview Rounds

Generally, there are two major types of technical interviews that companies have in India:

  • Problem Solving & Data Structures Round
  • Machine Coding Round

If you're aiming the traditional giants like Google, Microsoft, Amazon, etc, then you should focus solely on problem-solving & data structures (PS/DS).

@debarko
debarko / RNN_Predict.ipynb
Last active October 19, 2022 21:41
A RNN implementation in Keras
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaimeide
jaimeide / tutorial_dpcca_computation.ipynb
Last active November 14, 2024 12:43
Python implementation of the Detrended Partial Cross-Correlation Analysis (DPCCA) coefficient
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scrapehero
scrapehero / zillow.py
Last active December 13, 2023 16:05
Python 3 script to find real estate listings of properties up for sale on zillow.com
from lxml import html
import requests
import unicodecsv as csv
import argparse
import json
def clean(text):
if text:
return ' '.join(' '.join(text).split())
@pierdom
pierdom / plot_precounted_hist.py
Last active August 3, 2023 11:56
[Plot histograms with pre-computed counters] Plot histograms with Marplotlib hist function or Seaborn distplot function using pre-counted values using 'weights' argument. Very useful for plotting distributions of values queried from a very large dataset, where it is impossible to retrieve and load in memory every element of the distribution inde…
#!/usr/bin/env python3
import matplotlib.pyplot as plt
import seaborn as sns
# dictionary with pre-counted bins
test = {1:1,2:1,3:1,4:2,5:3,6:5,7:4,8:2,9:1,10:1}
# with matplotlib
plt.hist(list(test.keys()), weights=list(test.values()))
@Borodin
Borodin / upload_file.html
Last active November 2, 2023 01:05
Upload file javascript
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Upload</title>
</head>
<body>
<?php
if($_FILES['image']['tmp_name']){