Skip to content

Instantly share code, notes, and snippets.

View nozkok's full-sized avatar
🌙

Erkan Özkök nozkok

🌙
View GitHub Profile
@nozkok
nozkok / met.sublime-snippet
Created July 31, 2019 10:29
Laravel method snippets for sublime text
<snippet>
<content><![CDATA[
/**
* @return ${1:void}
*/
public function ${2:name}()
{
${3://}$0
}
]]></content>
FROM php:7.3-apache
RUN apt-get update
RUN apt-get install -y \
git \
zip \
curl \
sudo \
unzip \
libicu-dev \
@nozkok
nozkok / ext.txt
Created July 16, 2019 12:22 — forked from chronon/ext.txt
List of docker-php-ext-install extension names
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
@nozkok
nozkok / url_slug.js
Last active August 15, 2016 08:41 — forked from sgmurphy/url_slug.js
URL Slugs in Javascript (with UTF-8 and Transliteration Support)
/**
* Create a web friendly URL slug from a string.
*
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
@nozkok
nozkok / remove_accents.function.php
Created November 16, 2015 10:53 — forked from evaisse/remove_accents.function.php
php function to remove accent from the input string string. An example string like `ÀØėÿᾜὨζὅБю` * will be translated to `AOeyIOzoBY`
<?php # -*- coding: utf-8 -*-
// function remove_accents()
/**
* Unaccent the input string string. An example string like `ÀØėÿᾜὨζὅБю`
* will be translated to `AOeyIOzoBY`. More complete than :
* strtr( (string)$str,
* "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ",
* "aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn" );
*