Skip to content

Instantly share code, notes, and snippets.

View fatihalp's full-sized avatar
🎯
Focusing

Fatih Alp fatihalp

🎯
Focusing
View GitHub Profile
@oksuz
oksuz / sphinx_test.php
Created February 12, 2015 08:12
Sphinx Search Turkish Charset Table
<?php
header("Content-Type:text/html; charset=utf8");
$cli = new SphinxClient();
$cli->setServer("127.0.0.1", 9312);
$cli->setMatchMode(SPH_MATCH_EXTENDED2);
$result = $cli->query("bu süreçte yalnız değilsin");
var_dump($result);
/*
; The official HD AI
; An Artificial Intelligence Script written by Archon and Promiskuitiv
; Get in contact with Promiskuitiv by sending a mail to neuernamae@web.de
; List of taunts it reacts to:
; Standard taunts.
; 33 - Stop slinging resources. If slinging is requested early and is immediately canceled it may mess up the strategy.
; 38 - Sling Resources. Human player only, stops any unit production except for civilian units.
@saltun
saltun / gist:b4c117641461177523ef
Created July 5, 2014 12:39
Laravel validation.php Türkçe [ TR]
<?php
return array(
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
@laracasts
laracasts / ApiTester.php
Created April 9, 2014 23:53
Incremental APIs: Level 9 - Tests (Readable Ones!)
<?php
use Faker\Factory as Faker;
class ApiTester extends TestCase {
/**
* @var Faker
*/
protected $fake;