Skip to content

Instantly share code, notes, and snippets.

Biranchi biranchi2018

Block or report user

Report or block biranchi2018

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@biranchi2018
biranchi2018 / bigram_tokens.py
Last active Aug 21, 2019
NLP - Calculating Bigram Tokens
View bigram_tokens.py
import nltk
nltk.download('punkt')
import itertools
text = "today is 'Nayan's birthday. she loves ice cream. she is also fond of cream cake. we will celebrate her birthday with ice cream cake"
sentences = nltk.sent_tokenize(text)
words = [nltk.word_tokenize(sent) for sent in sentences]
print(words)
View Tensorflow Object Detection API
Tensorflow Object Detection API :
==================================
https://www.youtube.com/watch?v=COlbP62-B-U&index=1&list=PLQVvvaa0QuDcNK5GeCQnxYnSSaar2tpku
https://github.com/tensorflow/models/tree/master/research/object_detection
https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md
@biranchi2018
biranchi2018 / LabelImg.txt
Created Dec 1, 2018
Steps for Installing LabelImg
View LabelImg.txt
Steps for Installing LabelImg :
=================================
Step 1.
git clone https://github.com/tzutalin/labelImg
Step 2.
sudo pip3 install pyqt5 lxml
Step 3.
View FaceLandmarkDetection.py
from imutils import face_utils
import dlib
import cv2
import time
# initialize dlib's face detector (HOG-based) and then create
# the facial landmark predictor
cap = cv2.VideoCapture(0)
@biranchi2018
biranchi2018 / delete_all_tweets.py
Created Dec 21, 2017 — forked from davej/delete_all_tweets.py
This script will delete all of the tweets in a specified account.
View delete_all_tweets.py
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1)
@biranchi2018
biranchi2018 / opencv_show_webcam_detect_face.py
Created May 12, 2017 — forked from astanin/opencv_show_webcam_detect_face.py
OpenCV example. Show webcam image and detect face.
View opencv_show_webcam_detect_face.py
#!/usr/bin/env python2
"""
OpenCV example. Show webcam image and detect face.
"""
import cv2
TRAINSET = "/usr/share/OpenCV/lbpcascades/lbpcascade_frontalface.xml"
DOWNSCALE = 4
@biranchi2018
biranchi2018 / camera.py
Created Apr 16, 2017 — forked from cbednarski/camera.py
Webcam capture for python - Pops up a preview from your webcam and snaps a picture when you press 'q'
View camera.py
import cv2
# Windows dependencies
# - Python 2.7.6: http://www.python.org/download/
# - OpenCV: http://opencv.org/
# - Numpy -- get numpy from here because the official builds don't support x64:
# http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
# Mac Dependencies
# - brew install python
@biranchi2018
biranchi2018 / luhn.js
Created Sep 21, 2016 — forked from ShirtlessKirk/luhn.js
Luhn validation algorithm
View luhn.js
/**
* Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers
* @author ShirtlessKirk. Copyright (c) 2012.
* @license WTFPL (http://www.wtfpl.net/txt/copying)
*/
var luhnChk = (function (arr) {
return function (ccNum) {
var
len = ccNum.length,
bit = 1,
@biranchi2018
biranchi2018 / gist:9d9b44aa233880b9953b21057da80440
Created Jul 23, 2016 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
View gist:9d9b44aa233880b9953b21057da80440
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
View sendRawEth.c
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <stdio.h>
You can’t perform that action at this time.