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 json | |
import requests | |
try: | |
from urllib import urlencode | |
except ImportError: | |
from urllib.parse import urlencode |
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
<?php | |
/* | |
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS ) | |
Copyright (c) 1997-2017 The PHP Group | |
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies | |
with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies | |
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 json | |
import requests | |
try: | |
from urllib import urlencode | |
except ImportError: | |
from urllib.parse import urlencode | |
API = 'http://api.test.propars.net/api/v1/' |
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
<?php | |
/* | |
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS ) | |
Copyright (c) 1997-2017 The PHP Group | |
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies | |
with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies | |
PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11) |
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
class Dondurgec(list): | |
""" | |
nispeten ufak listelerde ise yarayabilir | |
ayrica list'in butun metotlari tekrar yazilmali ki saglikli calissin. | |
ayrica .sort() metotunun indisleri degistirdigini kesfetmeme yardimci oldu. | |
""" | |
_yon = True | |
def __setitem__(self, indis, deger): | |
superi = super(Dondurgec, self).__setitem__ | |
if self._yon: |
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
from decimal import Decimal | |
sayilar = { | |
"0" : "", | |
"1" : "bir", | |
"2" : "iki", | |
"3" : "uc", | |
"4" : "dort", | |
"5" : "bes", |