Skip to content

Instantly share code, notes, and snippets.

View MdShohanurRahman's full-sized avatar

MD SHOHANUR RAHMAN SHOHAN MdShohanurRahman

View GitHub Profile
@MdShohanurRahman
MdShohanurRahman / callback.js
Created December 8, 2020 16:25
Callback in Js
getUser(1, user => {
console.log('user', user)
getRepo(user.githubUserName, (repo) => {
console.log('Repos', repo)
})
})
function getUser(id, callback) {
setTimeout(()=>{
"""
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
@MdShohanurRahman
MdShohanurRahman / generate_tfrecord.py
Created November 30, 2019 08:00
Tensorflow Object Detection
"""
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
@MdShohanurRahman
MdShohanurRahman / connector.md
Last active October 4, 2022 02:16
Mysql connector with python

First of all you have to start your xamp server

Install Package

pip install mysql-connector-python

Connection Establishment Code

@MdShohanurRahman
MdShohanurRahman / admin.py
Last active November 11, 2019 13:16
Extends User Model With OneToOne Relation
from django.contrib import admin
from .models import UserProfile
# Register your models here.
admin.site.register(UserProfile)