A script to list down all the YouTube watch later videos, it can list other playlist on YouTube as well.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//maybe the worst implementation | |
const delay = ms => new Promise(res => setTimeout(res, ms)); | |
for(let i=0;i<100;i+=1){ | |
if(i%4===0){ | |
console.log("4"); | |
} | |
if(i%7===0){ | |
console.log("7"); | |
} | |
await delay(1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
model = tf.keras.models.load_model('name_gender.h5') | |
converter = tf.lite.TFLiteConverter.from_keras_model(model) | |
tflite_model = converter.convert() | |
open("converted_model.tflite", "wb").write(tflite_model) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dirrr in $(find . -mindepth 1 -maxdepth 1 -type d \( -name "*" \) ) ; | |
do | |
echo $dirrr | |
echo ############# | |
cd $dirrr | |
echo $(git remote show origin) | |
echo ############# | |
cd ../ | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
import os | |
import subprocess | |
from datetime import datetime | |
# performing git fsck(file system check) seems slower, so I mane this hack | |
# still can be found on it's upstream or here : https://gist.github.com/neingeist/7d448e574e9da30b6bcd | |
def git_directories(startdir): | |
for dirpath, dirnames, _ in os.walk(startdir): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flex lexer.l | |
gcc lex.yy.c | |
a.exe |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.request import Request, urlopen | |
from bs4 import BeautifulSoup | |
#https://translate.google.com/#view=home&op=translate&sl=en&tl=en&text=hello | |
#tlid-transliteration-content transliteration-content full | |
class Phonetizer: | |
def __init__(self,sentence : str,language_ : str = 'en'): | |
self.words=sentence.split() | |
self.language=language_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{amsmath} | |
\usepackage{tikz} | |
\usepackage{tikz-3dplot} | |
\usetikzlibrary{backgrounds} | |
\begin{document} | |
\tdplotsetmaincoords{65}{60} | |
\begin{tikzpicture}[tdplot_main_coords] | |
\begin{scope}[canvas is xz plane at y=2,transform shape] | |
\node[inner xsep=-3pt,inner ysep=-0.3pt] (mat1){$\displaystyle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
from PIL import Image | |
# Open Paddington | |
img = Image.open("input_file_name.jpg") | |
#increase for high resulation | |
si=16 |
NewerOlder