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
# https://stackoverflow.com/a/11596144/776348 | |
fuser -k 8888/tcp |
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
def create_dir(path): | |
if not os.path.isdir(path): | |
os.makedirs(path) |
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
rename 's/^IMG_/GT_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
########## Assignment 2-3 Closest person to each person in each image | |
########## - Calculate the Euclidean Distance between every pair in every annotation | |
########## - Match everyone with their closet | |
########## 10/04/2018 | |
########## Nithikan Srinakrung - Bam | |
########## DF4, FTSM, UKM | |
import os,sys |
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
#!/usr/bin/env python3 | |
import shutil | |
import sys | |
import string | |
pathStr = sys.argv[1] | |
splittedPath = string.split(pathStr, '/') | |
upper = splittedPath[-3] | |
upper_2 = splittedPath[-5] |
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
#!/bin/bash | |
for name in `find . -type f -name "*.mp4"` | |
do | |
python renamer.py ${name} | |
done |
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
CREATE TABLE soyisimler ( | |
id int IDENTITY(1,1) NOT NULL, | |
soyisim varchar(255) NOT NULL, | |
PRIMARY KEY (id) | |
) | |
INSERT INTO soyisimler VALUES ('ABAT'); | |
INSERT INTO soyisimler VALUES ('ABSEYİ'); | |
INSERT INTO soyisimler VALUES ('ABACIOĞLU'); | |
INSERT INTO soyisimler VALUES ('ACAR'); |
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 win32api, win32con | |
import math | |
widest = 1000 | |
narrowest = 100 | |
step = 100 | |
num_of_points = 100 | |
def click(x, y): | |
#https://stackoverflow.com/questions/1181464/controlling-mouse-with-python |
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
CREATE TABLE soyisimler ( | |
id int IDENTITY(1,1) NOT NULL, | |
soyisim varchar(255) NOT NULL, | |
PRIMARY KEY (id) | |
) | |
INSERT INTO soyisimler VALUES ('ABAT'); | |
INSERT INTO soyisimler VALUES ('ABSEYİ'); | |
INSERT INTO soyisimler VALUES ('ABACIOĞLU'); | |
INSERT INTO soyisimler VALUES ('ACAR'); |
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
nums = []; | |
nums.append (37107287533902102798797998220837590246510135740250) | |
nums.append (46376937677490009712648124896970078050417018260538) | |
nums.append (74324986199524741059474233309513058123726617309629) | |
nums.append (91942213363574161572522430563301811072406154908250) | |
nums.append (23067588207539346171171980310421047513778063246676) | |
nums.append (89261670696623633820136378418383684178734361726757) | |
nums.append (28112879812849979408065481931592621691275889832738) | |
nums.append (44274228917432520321923589422876796487670272189318) |