Skip to content

Instantly share code, notes, and snippets.

Hidayet Doğan hdogan

Block or report user

Report or block hdogan

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
@hdogan
hdogan / webpack.mix.js
Created Aug 20, 2019
Laravel Mix Fomantic/Semantic UI
View webpack.mix.js
mix.copy('node_modules/fomantic-ui-css/semantic.min.js', 'public/js');
mix.postCss('node_modules/fomantic-ui-css/semantic.min.css', 'public/css', [
require('postcss-url')([
{
filter: '**/assets/images/*',
url: function (asset) {
const basename = path.basename(asset.pathname);
mix.copy(asset.absolutePath, 'public/images/' + basename);
return '../images/' + basename + asset.search + asset.hash;
@hdogan
hdogan / curl-smtp.php
Last active Feb 25, 2019
Sending SMTP e-mail with curl/php
View curl-smtp.php
<?php
function read_cb($ch, $fp, $length) {
return fread($fp, $length);
}
$fp = fopen('php://memory', 'r+');
$string = "From: <no-reply@example.com>\r\n";
$string .= "To: <hdogan@example.com>\r\n";
$string .= "Date: " . date('r') . "\r\n";
$string .= "Subject: Test\r\n";
@hdogan
hdogan / is-animated-gif.php
Last active Mar 10, 2017
Detects animated GIF from given file pointer resource or filename.
View is-animated-gif.php
<?php
/**
* Detects animated GIF from given file pointer resource or filename.
*
* @param resource|string $file File pointer resource or filename
* @return bool
*/
function is_animated_gif($file)
{
$fp = null;
View Brewfile
cask_args appdir: '/Applications'
tap 'homebrew/core'
tap 'homebrew/dupes'
tap 'caskroom/cask'
tap 'homebrew/php'
tap 'homebrew/nginx'
tap 'homebrew/services'
brew 'bash-completion'
brew 'brew-cask-completion'
@hdogan
hdogan / phpkonf-bilet-kazananlar.txt
Last active Aug 29, 2015
PHPKonf 2015 için bilet kazananları belirleme kodcuğu.
View phpkonf-bilet-kazananlar.txt
@mrtozkanli
@zaherg
@ErhanPaker
@GurayYildirim
@elmor34
@bahadircakmak
@ibrahimmumcu
@iclalsuzgun
@EmreKizildas
@wardumpp
@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;
}
@hdogan
hdogan / laravel-3.2.5-raspberry-pi-benchmark.txt
Created Apr 26, 2013
Laravel 3.2.5 "Hello World" benchmark on Raspberry Pi Model B (512MB Ram), Raspbian (Debian 7), Transcend SDHC 4GB Class 6
View laravel-3.2.5-raspberry-pi-benchmark.txt
SD-Card Performance Benchmark Results
-------------------------------------
Transcend SDHC 4GB Class 6
Write: 20 MB/s
Read: 19 MB/s
See http://elinux.org/RPi_SD_cards#Terminal_Commands to how to done write/read performance test.
Phalcon Framework "Hello World" Benchmark Results
-------------------------------------------------
OS: Raspbian (Debian 7)
@hdogan
hdogan / codeigniter-2.1.0-raspberry-pi-benchmark.txt
Created Apr 26, 2013
CodeIgniter 2.1.0 "Hello World" benchmark on Raspberry Pi Model B (512MB Ram), Raspbian (Debian 7), Transcend SDHC 4GB Class 6
View codeigniter-2.1.0-raspberry-pi-benchmark.txt
SD-Card Performance Benchmark Results
-------------------------------------
Transcend SDHC 4GB Class 6
Write: 20 MB/s
Read: 19 MB/s
See http://elinux.org/RPi_SD_cards#Terminal_Commands to how to done write/read performance test.
CodeIgniter Framework "Hello World" Benchmark Results
-----------------------------------------------------
OS: Raspbian (Debian 7)
@hdogan
hdogan / yii-framework-1.1.13-raspberry-pi-benchmark.txt
Created Apr 26, 2013
Yii Framework 1.1.13 "Hello World" benchmark on Raspberry Pi Model B (512MB Ram), Raspbian (Debian 7), Transcend SDHC 4GB Class 6
View yii-framework-1.1.13-raspberry-pi-benchmark.txt
SD-Card Performance Benchmark Results
-------------------------------------
Transcend SDHC 4GB Class 6
Write: 20 MB/s
Read: 19 MB/s
See http://elinux.org/RPi_SD_cards#Terminal_Commands to how to done write/read performance test.
Yii Framework "Hello World" Benchmark Results
-------------------------------------------------
OS: Raspbian (Debian 7)
@hdogan
hdogan / phalcon-1.0.1-raspberry-pi-benchmark.txt
Last active Dec 16, 2015
Phalcon 1.0.1 "Hello World" benchmark on Raspberry Pi Model B (512MB Ram), Raspbian (Debian 7), Transcend SDHC 4GB Class 6
View phalcon-1.0.1-raspberry-pi-benchmark.txt
SD-Card Performance Benchmark Results
-------------------------------------
Transcend SDHC 4GB Class 6
Write: 20 MB/s
Read: 19 MB/s
See http://elinux.org/RPi_SD_cards#Terminal_Commands to how to done write/read performance test.
Phalcon Framework "Hello World" Benchmark Results
-------------------------------------------------
OS: Raspbian (Debian 7)
You can’t perform that action at this time.