php clear_queue.php --address=127.0.0.1 --port=4730
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
package com.omerucel.widget; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Typeface; | |
import android.os.Build; | |
import android.support.annotation.RequiresApi; | |
import android.util.AttributeSet; | |
public class TextView extends android.widget.TextView { |
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
autoload bashcompinit // for oh-my-zsh | |
bashcompinit // for oh-my-zsh | |
docker-exec() { | |
docker exec -it $1 /bin/bash | |
} | |
_dockerexec() { | |
local cur="${COMP_WORDS[COMP_CWORD]}" | |
local names=$(docker ps --format="{{.Names}}") | |
COMPREPLY=( $(compgen -W "${names}" ${cur}) ) |
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 | |
namespace { | |
class Databasecontext extends BaseContext | |
{ | |
/** | |
* @Then /^"([^"]*)" tablosunda aşağıdaki kayıtlar bulunmalı:$/ | |
*/ | |
public function tablosundaAsagidakiKayitlarBulunmali($arg1, \Behat\Gherkin\Node\TableNode $table) |
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
{# | |
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/ | |
Updated by: Simon Schick <[email protected]> | |
Parameters: | |
* currentFilters (array) : associative array that contains the current route-arguments | |
* currentPage (int) : the current page you are in | |
* paginationPath (string) : the route name to use for links | |
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled) | |
* lastPage (int) : represents the total number of existing pages |
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 | |
namespace Gearman; | |
class EventConsumer extends WorkerAbstract | |
{ | |
/** | |
* @var string | |
*/ | |
protected $token; |
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
package com.omerucel.sample; | |
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import android.view.MenuItem; |
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
FROM centos:latest | |
MAINTAINER Ömer ÜCEL <[email protected]> | |
RUN yum install -y --nogpgcheck epel-release && \ | |
rpm -qa | grep -q remi-release || rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && \ | |
yum --enablerepo=remi,remi-php70 install -y --nogpgcheck \ | |
git-core \ | |
nginx \ | |
gcc \ | |
gcc-c++ \ |
/**
* @Then /^"([^"]*)" tablosunda aşağıdaki kayıtlar bulunmalı:$/
*/
public function tablosundaAsagidakiKayitlarBulunmali($arg1, \Behat\Gherkin\Node\TableNode $table)
{
$columns = implode(',', array_keys($table->getHash()[0]));
$sql = 'SELECT ' . $columns . ' FROM ' . $arg1;
$rows = $this->getDi()->getMySQLConnection()->fetchAll($sql);
assertEquals(count($rows), count($table->getHash()));
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
package com.omerucel.test; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.SparseBooleanArray; | |
import android.view.ActionMode; | |
import android.view.Menu; | |
import android.view.MenuInflater; | |
import android.view.MenuItem; |