Skip to content

Instantly share code, notes, and snippets.

View maifeeulasad's full-sized avatar
💭
‎‍💻Open for a job‎‍💻

Maifee Ul Asad maifeeulasad

💭
‎‍💻Open for a job‎‍💻
View GitHub Profile
//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);
@maifeeulasad
maifeeulasad / converter.py
Created April 21, 2021 11:30
Tensorflow Lite | Android | Keras | model converter
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)
@maifeeulasad
maifeeulasad / list_gits.sh
Last active January 21, 2021 18:22
List all Git repos and their upstreams
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
@maifeeulasad
maifeeulasad / list_git_dir.py
Last active June 24, 2020 11:12 — forked from neingeist/git-fsck-all
find all git repositories (and git working directories) starting from the current directory and perform a 'git fsck' on them.
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):
@maifeeulasad
maifeeulasad / build.bat
Created April 25, 2020 20:13
flex template, without token returning
flex lexer.l
gcc lex.yy.c
a.exe
@maifeeulasad
maifeeulasad / gist:823ad7993c90bfa2506a3736604e2212
Created January 18, 2020 18:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :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:
@maifeeulasad
maifeeulasad / Phonetizer.py
Last active September 15, 2020 17:05
Phonetizer using Google translate, developing, check out here - http://github.com/maifeeulasad/phonetizer-google
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_
@maifeeulasad
maifeeulasad / 3.tex
Created October 12, 2019 18:33
Create matrix projection like view
\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
#!/usr/local/bin/python3
from PIL import Image
# Open Paddington
img = Image.open("input_file_name.jpg")
#increase for high resulation
si=16
@maifeeulasad
maifeeulasad / Sequential_blinking_12_led_s.ino
Created March 8, 2019 09:45
copy paste arduino code for 12 led
/* A simple program to sequentially turn on and turn off 12 LEDs */
int LED1 = 13;
int LED2 = 12;
int LED3 = 11;
int LED4 = 10;
int LED5 = 9;
int LED6 = 8;
int LED7 = 7;