Skip to content

Instantly share code, notes, and snippets.

View mehranattari's full-sized avatar

Muhammad Mehran Khan mehranattari

View GitHub Profile
import advertools as adv
import pandas as pd
key = 'YOUR_GOOGLE_KEY'
brands = [
'nike',
'adidas',
'puma',
'asics',
@mehranattari
mehranattari / youtube-playlist-duration.js
Last active January 29, 2019 05:14 — forked from angel333/youtube-playlist-duration.js
Youtube playlist duration
// Just copy this into console while on a playlist page (https://www.youtube.com/playlist?list=.....)
console.log(((document) => {
let seconds = Array.from(document.querySelectorAll('.ytd-thumbnail-overlay-time-status-renderer'))
.map((span) => {
let time = span.textContent.split(':');
return (Number(time[0]) * 60) + Number(time[1]);
})
.reduce((a,b) => {
return a + b;
<?php
/**
* Checkout Form
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-checkout.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@mehranattari
mehranattari / app.vue
Created February 3, 2018 12:10 — forked from dohomi/app.vue
Small file input element based on vuetify
<template>
<file-input v-model="filename" @formData="formData">
<v-btn @click.native="uploadFiles">
</template>
<script>
import fileInput from './file-input.vue'
export default{
components:{fileInput}