Skip to content

Instantly share code, notes, and snippets.

View flashblaze's full-sized avatar
💻

Neeraj Lagwankar flashblaze

💻
View GitHub Profile

Keybase proof

I hereby claim:

  • I am flashblaze on github.
  • I am flashblaze (https://keybase.io/flashblaze) on keybase.
  • I have a public key ASDU0bnWpTW4Z75HGY1s-Rl2BWZfr35YWQMjkVXd7yru9Ao

To claim this, I am signing this object:

import os
# Change this path accordingly
dir_path = "G:\\"
names = os.listdir(dir_path)
for name in names:
if(os.path.isdir(dir_path+name)):
count = 0
import requests
from bs4 import BeautifulSoup
url = 'https://stevenuniver.se/#season1'
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html5lib')
video_links_with_tag = soup.find_all('source')
titles_with_tag = soup.find_all('h3')
// from here: https://github.com/moxystudio/next-with-moxy/blob/master/next.config.js
require('dotenv').config();
const { withRasterImages, withPlayback, withSVG, withFonts, with3D } = require('@moxy/next-common-files');
const withOneOf = require('@moxy/next-webpack-oneof');
const withCompileNodeModules = require('@moxy/next-compile-node-modules');
const withCSS = require('@zeit/next-css');
const { PHASE_PRODUCTION_BUILD } = require('next/constants');
const withPlugins = require('next-compose-plugins');
@flashblaze
flashblaze / node_redis_cache.js
Created August 21, 2019 05:59 — forked from bradtraversy/node_redis_cache.js
Node.js & Redis Caching
const express = require('express');
const fetch = require('node-fetch');
const redis = require('redis');
const PORT = process.env.PORT || 5000;
const REDIS_PORT = process.env.REDIS_PORT || 6379;
const client = redis.createClient(REDIS_PORT);
const app = express();