Skip to content

Instantly share code, notes, and snippets.

View yuxel's full-sized avatar

Osman Yüksel yuxel

View GitHub Profile
<?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
"""
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
"""
<?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');
<?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');
<!-- 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>
import tornado.httpserver
import tornado.ioloop
import tornado.web
import time
class FeedgetService(tornado.web.RequestHandler):
def doSomethingWhichTakes10Seconds(self, url):
time.sleep(10)
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
@@ -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 +"/";
class Service_Exception
{
private $errors;
public put($errorCode, $errrorMessage="Undefined" )
{
array_push(
}
public throwIfAnyException()
$(window).scroll(function () {
offsetTop = $("select").offset().top;
scrollTop = $(window).scrollTop();
selectsYCoordinate = offsetTop - scrollTop;
console.log(selectsYCoordinate);
});