This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Hepsiburada Price Retriever | |
#Used lxml,beatifulsoup4 | |
import bs4 as bs | |
import urllib.request #In order to request | |
url = input("Enter Hepsiburada URL: ") | |
sauce = urllib.request.urlopen(url).read() #Returns the source code of the given URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model List<Ulens.Models.UserSupervisorRelationship> | |
@{ | |
ViewBag.Title = "Kullanıcı/Amir İlişkileri"; | |
} | |
<h2>Kullanıcı/Amir İlişkileri</h2> | |
<link href="~/Content/pnotify.css" rel="stylesheet" /> | |
<link href="~/Content/dataTables.bootstrap.min.css" rel="stylesheet" /> | |
<link href="~/Content/responsive.bootstrap.min.css" rel="stylesheet" /> | |
<link href="~/Content/babel.css" rel="stylesheet" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "72b09010-cdd7-c939-4977-1903ed6ea654", | |
"name": "Ulens v.2.0", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Register", | |
"request": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
fields = ['FACE_X','FACE_Y','FACE_WIDTH','FACE_HEIGHT'] | |
df = pd.read_csv('a.txt', usecols=fields) | |
df['FACE_WIDTH']=df['FACE_X']+df['FACE_WIDTH'] | |
df['FACE_HEIGHT']=df['FACE_Y']+df['FACE_HEIGHT'] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from lxml import etree | |
import xmlAnnotation.etree.cElementTree as ET | |
fields = ['NAME_ID', 'XMIN', 'YMIN', 'W', 'H', 'XMAX', 'YMAX'] | |
df = pd.read_csv('loose_bb_test.csv', usecols=fields) | |
# Change the name of the file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from lxml import etree | |
#import xmlAnnotation.etree.cElementTree as ET | |
import xml.etree.ElementTree as ET | |
fields = ['NAME_ID', 'XMIN', 'YMIN', 'W', 'H', 'XMAX', 'YMAX'] | |
df = pd.read_csv('loose_bb_test.csv', usecols=fields) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import random | |
import os | |
def saveImg(img, name,location): | |
img = cv2.resize(img,(416, 416)) | |
cv2.imwrite(location + name + '.jpg', img) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import os | |
cap = cv2.VideoCapture('IMG_4230.MOV') | |
if not os.path.exists('training_images'): | |
os.makedirs('training_images') | |
userid = 'x' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import os.path | |
from os.path import basename | |
rootDir = 'img' | |
for dirName, subdirList, fileList in os.walk(rootDir): | |
#print('Found directory: %s' % dirName) | |
for fname in fileList: | |
base = basename(dirName) | |
location=dirName+'/'+fname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.*; | |
public class IdentifyHostNameIP { | |
public static void main(String[] args) { | |
for (int i = 0; i < args.length; i++) { | |
try { | |
InetAddress address = InetAddress.getByName(args[i]); | |
System.out.print("Host name: " + address.getHostName() + " "); | |
System.out.println("IP address: " + address.getHostAddress()); | |
} |