Skip to content

Instantly share code, notes, and snippets.

🏠
Working from own office

Sinan Eldem sineld

🏠
Working from own office
Block or report user

Report or block sineld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sineld.php
<?php
echo 'hayır hayır amca dedi';
?>
View json-php.php
<?php
$dizi = array('koca' => array('isim' => 'sinan', 'yas' => 31), 'es' => array('isim' => 'bilge', 'yas' => 22));
echo 'Php: ';
var_dump($dizi).'<br>';
$d = json_encode($dizi);
echo 'Json (encoded): ';
@sineld
sineld / helpers.php
Created Jul 25, 2012
My dd replace
View helpers.php
<?php
/**
* Dump the given value and kill the script or continue.
*
* <code>
* // Dump the $data variable and kill the script
* d($data);
*
* // Dump the $data variable and continue the script
* d($data,1);
@clouddueling
clouddueling / is_64_bit.php
Created Dec 9, 2012
Is my php server 64 bit?
View is_64_bit.php
<?php
// http://ideone.com/JWKIf
function is_64bit() {
$int = "9223372036854775807";
$int = intval($int);
if ($int == 9223372036854775807) {
/* 64bit */
return true;
View DB.sql
CREATE TABLE `makers` (
`id` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
@barryvdh
barryvdh / laravel4_codeintel_helper.php
Last active Dec 15, 2015
Laravel 4 IDE Helper; CodeIntel version, generated using https://github.com/barryvdh/laravel-ide-helper (With the sublime option)
View laravel4_codeintel_helper.php
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
// This is now merged with: https://gist.github.com/barryvdh/5227822
// The same format is used for phpStorm, netBeans and Sublime Text Codeintel!
@sineld
sineld / setup-sync-sublime-over-dropbox.sh
Last active Dec 15, 2015
zsh-scripts/bin/setup-sync-sublime-over-dropbox.sh
View setup-sync-sublime-over-dropbox.sh
#!/bin/sh
#
# Original URL: https://github.com/miohtama/ztanesh/blob/master/zsh-scripts/bin/setup-sync-sublime-over-dropbox.sh
# Set-up Sublime settings + packages sync over Dropbox
# Kullanım: $sh dosya.sh
# Will sync settings + Installed plug-ins
#
# Tested on OSX - should support Linux too as long as
# you set-up correct SOURCE folder
#
View global.php
<?php
// app/start/global.php
/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which
@sineld
sineld / sublimeText2-3.settings
Last active Dec 19, 2015
sublimeText2-3.settings
View sublimeText2-3.settings
{
"auto_complete": true,
"auto_complete_selector": "source, text",
"color_scheme": "Packages/Dayle Rees Color Schemes/FreshCut.tmTheme",
"ensure_newline_at_eof_on_save": false,
"fallback_encoding": "Turkish (Windows 1254)",
"folder_exclude_patterns":
[
".svn",
".hg",
@hdogan
hdogan / cekilis.php
Last active Dec 22, 2015
Linux Yaz Kampı 2013 - PHP ile Yazılım Geliştirme Kursu Çekiliş Kodu
View cekilis.php
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<title>Çekiliş</title>
<style>
body {
font-family: Tahoma, sans-serif;
font-size: 40px;
}
You can’t perform that action at this time.