This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Convert file size in bytes to nice (human-readable) format. | |
* This snippet shows you how to convert file size in bytes to nice (human-readable) format in PHP. | |
* If the size is less than 1 MB, show the size in KB, if it's between 1 MB - 1 GB show it in MB, etc. | |
*/ | |
function sizeForHuman(int $value, int $decimal = 0): string | |
{ | |
$units = ['', 'K', 'M', 'B', 'T']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint strict:true, browser:true, jquery:true, devel:true, curly:true, eqeqeq:true, immed:true, latedef:true, plusplus:true, undef:true, unused:true */ | |
(function(window, document, undefined) { | |
"use strict"; | |
}(this, this.document)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable php in this folder and subfolders | |
RemoveHandler .php .phtml .php3 | |
RemoveType .php .phtml .php3 | |
php_flag engine off # Comment this line if PHP 5.5 | |
<Files *> | |
SetHandler default-handler | |
</Files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
$max: 100; | |
$step: 10; | |
@for $i from 0 through ceil($max/$step) { | |
$value: $i * $step; | |
.percentage-#{$value} { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Jhone Doe | |
email = jhone@example.com | |
[color] | |
ui = auto | |
[alias] | |
logg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
st = status | |
co = checkout | |
br = branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension=xdebug.so | |
xdebug.default_enable=1 | |
xdebug.ide_key="phpstorm-xdebug" | |
xdebug.idekey="phpstorm-xdebug" | |
xdebug.remote_autostart=0 | |
xdebug.remote_enable=1 | |
xdebug.remote_host=192.168.1.3 | |
xdebug.remote_port=9000 | |
xdebug.remote_connect_back=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"phpmd/phpmd": "2.*", | |
"squizlabs/php_codesniffer": "2.*", | |
"apigen/apigen": "@stable", | |
"d11wtq/boris": "@stable" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: up start stop down log artisan migrate scrap phone import composer supervisor-update fix-permissions ide-helper | |
# Set dir of Makefile to a variable to use later | |
MAKEPATH := $(abspath $(lastword $(MAKEFILE_LIST))) | |
PWD := $(dir $(MAKEPATH)) | |
CONTAINER_FPM := "container_fpm" | |
CONTAINER_NGINX := "container_nginx" | |
CONTAINER_SUPERVISOR := "container_supervisor" | |
up: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class ModelTest | |
* | |
* @package AppTest\Model | |
* | |
* @codingStandardsIgnoreFile | |
* @SuppressWarnings(PHPMD.CamelCaseMethodName) | |
* @SuppressWarnings(PHPMD.CamelCasePropertyName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select.form-control { | |
padding-right: 20px; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gMVEx0lHTdoJgAAAEBJREFUOMtjYBgFyICRHLXomv6TagATmoQ9EZrtCClIgroEG04k1o89WDR3kRqoW5A0byI3Zi4wMDCcG02gNAYA79cSVHAU23YAAAAASUVORK5CYII=') 99% center no-repeat; | |
} |
OlderNewer