Skip to content

Instantly share code, notes, and snippets.

View akashvaghela09's full-sized avatar
💬
I may be slow to respond.

Akash Vaghela akashvaghela09

💬
I may be slow to respond.
View GitHub Profile
import { combineReducers, createStore, applyMiddleware, compose } from 'redux'
import { reducer as appReducer } from './app/reducer'
const rootReducer = combineReducers({
app: appReducer
})
const logger = (store) => (next) => (action) => {
// console.log("Dispatching Action Logger1", action, store.getState())
const value = next(action)
@akashvaghela09
akashvaghela09 / js-dsa-template.js
Created January 19, 2022 12:58
JavaScript Boilerplate code for DSA
function runProgram(input) {
// Write code here
input = input.trim().split('\n')
let arr = input[0].trim().split(" ").map(Number)
console.log(arr[0] + arr[1]);
}
if (process.env.USER === "akash") {
runProgram(`5 10`);
} else {
process.stdin.resume();
@akashvaghela09
akashvaghela09 / m3u8_decryptor.py
Created July 12, 2020 18:15 — forked from delimitry/m3u8_decryptor.py
Python script for download and decrypt TS chunks from m3u8 file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import requests
import sys
from Crypto.Cipher import AES