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
-Блог/Новости | |
-Пагинация как плагин | |
-Меню можно встроенное или как плагин до 2 - 3 уровней вложености | |
-Менеджер файлов | |
-Текстовый редактор для шаблонов | |
-Сниппеты/Шорткоды для плагинов по типу {blog} {blog-list} | |
-Фотогалерея/Портфолио | |
-Кеширование | |
-Локализация | |
-Плагины... |
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 Archiver | |
{ | |
protected $output = array(); | |
public function pack($source, $destination=null) | |
{ | |
$source = realpath($source); | |
$sourcePath = dirname($source); |
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 Archiver | |
{ | |
protected $files = array(); | |
public function pack($source, $archivePath=null) | |
{ |
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 Captcha | |
{ | |
private static function generate() { | |
$fontFile = './captcha.ttf'; | |
$fontSize = 18; | |
$charsAmount = 5; | |
$chars = '23456789BCDFGHJKMNPQRSTVWXYZ'; | |
$stringOffsetX = 5; |
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
https://github.com/bcosca/fatfree/blob/master/lib/web.php#L723 |
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 | |
error_reporting(-1); | |
class Avatar | |
{ | |
private $path = './images/'; | |
private $config = array( | |
0 => 'backgrounds', | |
1 => 'bodies', | |
2 => 'accessories', | |
3 => 'effects', |
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
// --- INIT | |
var gulp = require('gulp'), | |
less = require('gulp-less'), // compiles less to CSS | |
minify = require('gulp-minify-css'), // minifies CSS | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), // minifies JS | |
rename = require('gulp-rename'), | |
browserSync = require('browser-sync'); | |
// Start the server |
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
<snippet> | |
<content><![CDATA[ | |
die(var_dump($1)); | |
]]></content> | |
<tabTrigger>dd</tabTrigger> | |
<scope>source.php</scope> | |
<description>die(var_dump(...))</description> | |
</snippet> |
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
for(var i = 1, max = 6; i < max; i++) { | |
for(var f = i + 1; f < 7; f++) { | |
columns = i; | |
margin = (f - 1) * 4; | |
width = (100 - margin) / f; | |
if (columns > 1) { | |
width = (width * columns) + ((columns - 1) * 4); | |
} | |
console.log(i + '/' + f + ' col: width:' + Math.floor(width * 1000) / 1000); | |
} |
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
#map $status $loggable { | |
# ~^[2,3] 0; | |
# default 1; | |
#} | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
server_name ~^(www\.)?(?<domain>.+?).loc$; |
OlderNewer