Skip to content

Instantly share code, notes, and snippets.

View melihbuyuk's full-sized avatar

Melih Buyukbayram melihbuyuk

View GitHub Profile
@melihbuyuk
melihbuyuk / gist:1545394
Created December 31, 2011 21:24
FriendFeed Custom Theme CSS
body { background: #FFFFFF;}
#footer,.box-bar, #header {display:none !important;}
@media screen {
@font-face {
font-family: 'Neucha';
font-style: normal;
font-weight:normal; src: local('Neucha'), url('http://themes.googleusercontent.com/font?kit=EcY9zoxaUNcYqXVG35_hCQ') format('truetype');
}
}
@melihbuyuk
melihbuyuk / Google Did You Mean PHP Class
Created June 13, 2011 09:42
Google Did You Mean PHP Class
class DYM{
private $sorgu;
public $dil = 'tr',
//Arama url'si
$aranan_kelime = 'http://www.google.com.tr/search?hl=#dil#&q=#sorgu#&meta=',
//Donen Sonuc Dogru veya Yanlis.
$dogru;
<?php
function sistem_geri_bildirim($bildirim_kodu, $onem, $mesaj, $mesaj_kodu, $indirilen, $boyut) {
switch($bildirim_kodu) {
case STREAM_NOTIFY_RESOLVE:
case STREAM_NOTIFY_AUTH_REQUIRED:
case STREAM_NOTIFY_COMPLETED:
case STREAM_NOTIFY_FAILURE:
case STREAM_NOTIFY_AUTH_RESULT:
var_dump($bildirim_kodu, $onem, $mesaj, $mesaj_kodu, $indirilen, $boyut);
@melihbuyuk
melihbuyuk / Dosya Yukleme Geri Bildirim
Created April 15, 2011 14:50
Yuklenen Dosyalar Hakkinda Geri Bildirim Sunar
<?php
function sistem_geri_bildirim($bildirim_kodu, $onem, $mesaj, $mesaj_kodu, $indirilen, $boyut) {
switch($bildirim_kodu) {
case STREAM_NOTIFY_RESOLVE:
case STREAM_NOTIFY_AUTH_REQUIRED:
case STREAM_NOTIFY_COMPLETED:
case STREAM_NOTIFY_FAILURE:
case STREAM_NOTIFY_AUTH_RESULT:
var_dump($bildirim_kodu, $onem, $mesaj, $mesaj_kodu, $indirilen, $boyut);
@melihbuyuk
melihbuyuk / SelectBox Skins
Created April 8, 2011 15:07
Kendine Gore Duzenlersin
(function ($)
{
$.fn.select_skins = function (w)
{
return $(this).each(function (i) {
s = $(this);
if (!s.attr('multiple'))
{
s.wrap('<div class="cmf-skinned-selects"></div>');
c = s.parent();
@melihbuyuk
melihbuyuk / Create Columu
Created January 1, 2011 18:35
Create Bolumu
class SipzyUser {
var $CI;
var $errors = array();
var $accounts_controller = 'account';
public function SipzyUser() {
$this->CI =& get_instance();
}
@melihbuyuk
melihbuyuk / User Model
Created January 1, 2011 14:33
user model
<?php
if (! defined('BASEPATH')) exit('No direct script access');
class userModel extends Model {
var $dbTableName = 'identities'
function userModel() {