Skip to content

Instantly share code, notes, and snippets.

View abhishekmishragithub's full-sized avatar
🎯
Focusing

Abhishek abhishekmishragithub

🎯
Focusing
View GitHub Profile
@abhishekmishragithub
abhishekmishragithub / face_detect_api_v1.py
Created August 22, 2019 08:43
Basic Flask API for face detection
from PIL import Image
import face_recognition
import cv2
import sys
import time
from flask import Flask, request, redirect, url_for, flash, jsonify
import logging
logging.basicConfig(filename="app.log",
filemode='a',
@abhishekmishragithub
abhishekmishragithub / gitcom.md
Created December 3, 2019 10:44 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@abhishekmishragithub
abhishekmishragithub / index.html
Created December 6, 2019 07:29
Vue.js @ Dynamic Clone Form Fields
<main class="container">
<form id="app" data-apartments='[{ "price": "23000", "rooms": "12" }, { "price": "42000", "rooms": "32" }]'>
<h1>
Dynamic apartment forms
</h1>
<hr>
<div class="row">
<div class="col-xs-2">
<button type="button" v-on:click="addNewApartment" class="btn btn-block btn-success">
Add +
@abhishekmishragithub
abhishekmishragithub / mutable_default_args.py
Last active July 2, 2020 09:43
Python Gotcha : Mutable Default Arguments ( Python’s default arguments are evaluated once when the function is defined, not each time the function is called. This means that if you use a mutable default argument and mutate it, you will and have mutated that object for all future calls to the function as well.)
def append_to(element, to=[]):
to.append(element)
return to
my_list = append_to(12)
print(my_list)
my_other_list = append_to(42)
print(my_other_list)
{
"salads": [
{
"id": "1",
"title": "Salmon Avocado Salad",
"image": "https://www.themealdb.com/images/media/meals/1549542994.jpg",
"price": "$3.89",
"ingredients": [
"Salmon",
"Avocado",
name: Test, Build and Deploy
on:
pull_request:
types: [closed]
jobs:
build-test-release:
if: github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest

Keybase proof

I hereby claim:

  • I am abhishekmishragithub on github.
  • I am stalwartcoder (https://keybase.io/stalwartcoder) on keybase.
  • I have a public key whose fingerprint is 4065 585A 77BC 8F0C 2E1B ED22 7134 3F29 4CB5 B3F3

To claim this, I am signing this object:

@abhishekmishragithub
abhishekmishragithub / list.md
Created July 19, 2021 09:28 — forked from ih2502mk/list.md
Quantopian Lectures Saved

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example