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
<?php | |
function tablolariOlustur() { | |
//burada baglanti aciliyor | |
$baglanti = new SQLiteDatabase('veritabani.sqlite'); | |
//burada create table sql komutu calistiriliyor | |
//burada users adinda bi tablo olusturup, userId ve password diye iki tane alan ekliyoruz | |
//bu alanlar da 100 karakterlik veri tutabiliyor |
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
""" | |
Kullanici kayit islemlerinden gelen mesajlari dinleyen, | |
mesaj geldiginde ilgili kullanicinin bulundugu yeri veritabanindan cekme, | |
kullanicinin bulundugu bu yere yakin diger kullanicilari cekme, | |
ve bulunan diger kullanicilara e-posta gonderme islemlerini | |
simule eden kod | |
http://barryp.org/software/py-amqplib/ adresinden py-amqplib'i indirip kurmalisiniz | |
""" |
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
<?php | |
/** | |
* Kullanici kayit olduktan sonra kuyruga kullanici id'sini | |
* mesaj gonderen uygulama | |
* | |
* http://code.google.com/p/php-amqplib/ adresinden PHP kutuphanesini indirmelisiniz | |
*/ | |
//indirdiginiz kutuphane icindeki dosyanin yolunu gosterin | |
require_once('../amqp.inc'); |
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
<?php | |
error_reporting(E_ALL); | |
ini_set("display_errors",true); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); | |
curl_setopt($ch, CURLOPT_URL, 'http://sozluk.sourtimes.org/login.asp'); |
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
<!-- sayfadaki orijinal --> | |
<h1 class="title" style="visibility: hidden; display: none"> | |
<a href="show.asp?t=ezel">ezel</a> | |
<span class="eksigator_subscribe">[ Takipten çıkar ]</span> | |
</h1> | |
<!-- sizin eklediginiz --> | |
<h1 class="title" id="epp_sabitBaslik" style="position: fixed; top: 0px; left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.2em; padding-right: 0.2em; padding-bottom: 0.2em; padding-left: 0.5em; background-color: #b1ac99"> | |
<a href="show.asp?t=ezel">ezel</a> |
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 tornado.httpserver | |
import tornado.ioloop | |
import tornado.web | |
import time | |
class FeedgetService(tornado.web.RequestHandler): | |
def doSomethingWhichTakes10Seconds(self, url): | |
time.sleep(10) |
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 tornado.httpserver | |
import tornado.ioloop | |
import tornado.web | |
import time | |
class FeedgetService(tornado.web.RequestHandler): | |
#i'm willing that method will run async | |
@tornado.web.asynchronous |
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
@@ -8,7 +8,9 @@ var pageTitle = ""; | |
var isOnList = false; | |
var itemStatus = 0; | |
-var baseUrl="http://sozluk.sourtimes.org/"; | |
+//var baseUrl="http://sozluk.sourtimes.org/"; //good old days | |
+ | |
+var baseUrl="http://www.eksisozluk.com/"; | |
var sourPHPUrl=apiURL+ userName + "/" + userApiKey +"/"; | |
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
class Service_Exception | |
{ | |
private $errors; | |
public put($errorCode, $errrorMessage="Undefined" ) | |
{ | |
array_push( | |
} | |
public throwIfAnyException() |
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
$(window).scroll(function () { | |
offsetTop = $("select").offset().top; | |
scrollTop = $(window).scrollTop(); | |
selectsYCoordinate = offsetTop - scrollTop; | |
console.log(selectsYCoordinate); | |
}); |
OlderNewer