Skip to content

Instantly share code, notes, and snippets.

View sineld's full-sized avatar
🏢
Full Stack Developer

Sinan Eldem sineld

🏢
Full Stack Developer
View GitHub Profile
@sineld
sineld / laravel.js
Created May 20, 2016 20:30 — forked from soufianeEL/laravel.js
You use Laravel 5 and you want to send a DELETE request without creating a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. To use, import script, and create a link with the `data-method="DELETE"` and `data-token="{{csrf_token()}}"` attributes.
/*
Exemples :
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}">
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?">
*/
(function() {
@sineld
sineld / 1) Install
Created May 5, 2016 14:01 — forked from nghuuphuoc/1) Install
Install Redis on Centos 6
// --- Compiling ---
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
@sineld
sineld / paginator.js
Last active April 17, 2016 14:18 — forked from kirkbushell/paginator.js
Paginator module for AngularJS, in combination with Laravel's paginator class
/**
* Paginator
*
* The paginator can be used within any controller to easily set up
* some pagination options, including number of pages, page navigation
* and more. It is built to work with Laravel's own pagination library,
* which returns data in a particular format.
*
* Usage:
* Before you can use paginator, make sure you specify the URLs to your pagination
@sineld
sineld / welcome.blade.php
Created February 6, 2015 13:24
welcome.blade.php
<h1>Merhaba KIZIM!</h1>
<p>Sayfa yüklenme süresi:</p>
<p>{{ number_format(microtime(true) - LARAVEL_START, 5) }} sn.</p>
@sineld
sineld / clock.js
Last active February 19, 2018 14:45
Create Your Own jQuery Digital Clock
/*
Create Your Own jQuery Digital Clock
http://www.sitepoint.com/create-jquery-digital-clock-jquery4u/
*/
<script>
function updateClock()
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
@sineld
sineld / lng_tr.php
Created January 6, 2015 13:48
Language File for Sypex Dumper 2
<?php
// Language File for Sypex Dumper 2
$LNG = array(
// Lisan dosyası bilgileri
'ver' => 20007, // Dumper sürümü
'translated' => 'Sinan Eldem (http://www.sinaneldem.com.tr/)', // İletişim
'name' => 'Türkçe', // Lisan ismi
// Araçlar paneli
<?php
/**
* File: SimpleImage.php
* Author: Simon Jarvis
* Modified by: Miguel Fermín
* Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@sineld
sineld / config.plist
Created November 19, 2014 13:57
Laptop
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>Fixes</key>
<dict>
<key>FixRegions_10000000</key>
<true/>
@sineld
sineld / config.plist
Created November 19, 2014 07:47
config.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
@sineld
sineld / sms.php
Last active August 29, 2015 14:07
Şahin Haberleşme SMS API
<?php
/**
*
* Şahin Haberleşme SMS API
* wwww.sahinhaberlesme.com.tr
*
* SMS Gönderim API
*
* Geliştirme : Sinan Eldem