Skip to content

Instantly share code, notes, and snippets.

@BekirUzun
BekirUzun / main.go
Created April 27, 2019 15:18
Golang struct composition and polymorphism simple example
package main
import (
"fmt"
)
type IAnimal interface {
Talk()
Info()
}
@BekirUzun
BekirUzun / add-open-cmd-and-powershell-here.reg
Last active January 12, 2021 05:14
Add open command window here and powershell here
Windows Registry Editor Version 5.00
; Add Open cmd and powershell here with administrator variations to right click context menu
[HKEY_CLASSES_ROOT\Directory\Background\shell\CliHere]
"MUIVerb"="Open CLI here"
"Position"="Middle"
"Icon"="cmd.exe"
"SubCommands"=""
@BekirUzun
BekirUzun / fancy-transition.ts
Created January 21, 2019 20:03
Ionic 3 custom page transitions: "slide-up" and "fancy"
import { Animation, PageTransition } from "ionic-angular";
import { isPresent } from "ionic-angular/util/util";
const EASINGS = {
outBack: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
inOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
magnet: 'cubic-bezier(0.85, 0.06, 0.15, 0.94)'
}
const DURATION = 500;
@BekirUzun
BekirUzun / php-dump.sublime-snippet
Created June 16, 2017 16:00
A Sublime PHP snippet for variable dumping
<snippet>
<!-- What to print when snippet triggered -->
<content><![CDATA[
echo '<pre>';
die(var_dump(\$${1:var}));
]]></content>
<!-- Shortcut. Type 'dump' then press tab to run this snippet-->
<tabTrigger>dump</tabTrigger>
<?php
# Http Durum Kodları
# Kaynak 1: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
# Kaynak 2: https://tr.wikipedia.org/wiki/HTTP_durum_kodlar%C4%B1
$httpDurumKodlari = array(
# 1xx: Bilgi
"100"=>"Devam",
"101"=>"Anahtarlama Protokolü",
"102"=>"İşleniyor",
# 2xx: Başarılı