Skip to content

Instantly share code, notes, and snippets.

View Prady96's full-sized avatar
:octocat:
Available for Projects

Pradyum Gupta Prady96

:octocat:
Available for Projects
  • yously.com
  • Delhi
View GitHub Profile
How do I resolve unmet dependencies after adding a PPA?
https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
@Prady96
Prady96 / HaarCascade Code Error.py
Created October 21, 2018 05:23
HaarCascade Code Error
import cv2
# mathematical calculations
import numpy as np
# os module class hai
from os import listdir
# fetching data from dir and path
from os.path import isfile, join
data_path = "newFaces/" #saved images
onlyFiles = [f for f in listdir(data_path) if isfile(join(data_path,f))]
@Prady96
Prady96 / Mail Links
Created November 4, 2018 19:32
Setting up postfix server
import ogr, sys, os
import osgeo.osr as osr
line=ogr.Geometry(ogr.wkbLineString)
line.AddPoint(10,10)
line.AddPoint(20,20)
driver=ogr.GetDriverByName('ESRI Shapefile')
ds=driver.CreateDataSource('test.shp')