Skip to content

Instantly share code, notes, and snippets.

@heyayush
heyayush / youtube-video_analysis.ipynb
Last active October 11, 2022 15:52
Analyzing youtube video using natural language processing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heyayush
heyayush / layout-deep-view.css
Last active September 8, 2019 06:15
CSS hack to see boundaries of layout
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }
* * * * * * * { background-color: rgba(255,0,0,.2); }
* * * * * * * * { background-color: rgba(0,255,0,.2); }
* * * * * * * * * { background-color: rgba(0,0,255,.2); }
@heyayush
heyayush / tech-stack.ipynb
Last active May 8, 2019 09:18
Data visualization of developer's tech stack
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heyayush
heyayush / config.yml
Created April 26, 2019 06:27
Circle-CI config for running sanity tests (lint and unit tests) before PR merge and build deployment
version: 2
defaults: &defaults
docker:
- image: circleci/node:10.15.3
working_directory: ~/repo
jobs:
install:
<<: *defaults
@heyayush
heyayush / imdbRatingsScrap.js
Created November 2, 2018 06:26
Scraping data from IMDB and saving it in a JSON
const puppeteer = require('puppeteer');
const fs = require('fs');
const moment = require('moment');
let urlPre = 'http://www.imdb.com/title/';
let urlPost = '/ratings';
const titles = [];
process.argv.forEach((val, index) => {
index!==0 && index !== 1 ? titles.push(val): null;
});
const getCurrentUrl = (pageNum) => {