Skip to content

Instantly share code, notes, and snippets.

View hkkcngz's full-sized avatar
💭
never give up

Hakkı Cengiz hkkcngz

💭
never give up
View GitHub Profile
@bhnascar
bhnascar / ReadingPractice.java
Created March 12, 2017 22:02
Code reading practice
import java.util.*;
class ReadingPractice
{
/* What is the return value of |mystery("hi")|?
*
* (A) hi
* (B) hi5
* (C) hi55
* (D) mn
@Binary-Finery
Binary-Finery / MainActivity.java
Created July 15, 2017 13:32
Popup menu example without inflating XML. Menu items are added dynamically
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.PopupMenu;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
<?php
function phone_format( $phone )
{
$retVal = $phone;
//telefon ile ilgili islemler
if (0 === strlen($retVal)) {//telefon numarasi yoksa hic ugrasma
return $retVal;
}