This file contains 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
void kullanici_ekle() | |
{ | |
system("cls"); | |
first_memur(); | |
first_kullanici(); | |
user_information(); | |
Sleep(3000); | |
system("cls"); | |
struct kullanici users; | |
This file contains 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
void bilgilerimi_goruntule() | |
{ | |
system("cls"); | |
system("cls"); | |
FILE *fileptr1; | |
char ch; | |
//open file in read mode | |
fopen_s(&fileptr1, "user_information.dat", "r"); | |
ch = getc(fileptr1); | |
while (ch != '\n') |
This file contains 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
void bilgilerimi_goruntule() | |
{ | |
system("cls"); | |
system("cls"); | |
FILE *fileptr1; | |
char ch; | |
//open file in read mode | |
fopen_s(&fileptr1, "user_information.dat", "r"); | |
ch = getc(fileptr1); | |
while (ch != '\n') |
This file contains 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
void bilgilerimi_goruntule() | |
{ | |
system("cls"); | |
system("cls"); | |
FILE *fileptr1; | |
char ch; | |
//open file in read mode | |
fopen_s(&fileptr1, "user_information.dat", "r"); | |
ch = getc(fileptr1); | |
while (ch != '\n') |
This file contains 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
/*++ | |
Module Name: | |
main.c | |
Vers : v1 | |
--*/ | |
#define _CRT_SECURE_NO_WARNINGS |
This file contains 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
/*++ | |
Module Name: | |
main.c | |
Vers : v1.1 | |
--*/ | |
#define _CRT_SECURE_NO_WARNINGS |
This file contains 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
from bs4 import BeautifulSoup | |
from urllib2 import urlopen | |
import sqlite3 | |
BASE_URL = "http://www.chicagoreader.com" | |
conn = sqlite3.connect('webscrap.db') # creating database | |
c = conn.cursor() | |
c.execute('''CREATE TABLE stocks | |
(category_url text, category text, winner text, runners_up text)''') |
This file contains 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 requests | |
from bs4 import BeautifulSoup | |
# set userid to youtube channel id | |
# script will get all the annotations from user's videos | |
url = 'https://www.youtube.com/user/USERID/videos/browse_ajax?action_continuation=1&continuation=4qmFsgI8EhhVQ0VrOTBTOGl1SHQwZVV6Yks4TmtwX2caIEVnWjJhV1JsYjNNZ0FEQUJPQUZnQVdvQWVnRXl1QUVB' | |
r = requests.get(url) | |
soup = BeautifulSoup(r.text) |
This file contains 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 random | |
uagent = ['Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3 GTB5', | |
'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ko; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2', | |
'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5', | |
'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.12) Gecko/20080214 Firefox/2.0.0.12', | |
'Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8', | |
'Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.8.0.5) Gecko/20060819 Firefox/1.5.0.5', | |
'Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3', | |
'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5', | |
'Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b2) Gecko/20100720 Firefox/4.0b2', |
This file contains 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
#Write a function that given a list of non negative integers, arranges them such that they form the largest possible number. | |
#For example, given [50, 2, 1, 9], the largest formed number is 95021 | |
# question url https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour | |
numbers = [5, 51, 56, 50] | |
result = '' | |
def check(number): | |
if len(str(number)) == 1: |
OlderNewer