- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
<? echo substr($addressText, 0, 43).'…'; ?> |
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
function sklonen($n,$s1,$s2,$s3, $b = false){ | |
$m = $n % 10; $j = $n % 100; | |
if($b) $n = '<b>'.$n.'</b>'; | |
if($m==0 || $m>=5 || ($j>=10 && $j<=20)) return $n.' '.$s3; | |
if($m>=2 && $m<=4) return $n.' '.$s2; | |
return $n.' '.$s1; | |
} | |
var_dump(sklonen(10, 'комната', 'комнаты', 'комнат')); |
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
//Транслит строки | |
function translit_str($str){ | |
$tr = array( | |
"А"=>"a","Б"=>"b","В"=>"v","Г"=>"g", | |
"Д"=>"d","Е"=>"e","Ё"=>"yo","Ж"=>"zh","З"=>"z","И"=>"i", | |
"Й"=>"y","К"=>"k","Л"=>"l","М"=>"m","Н"=>"n", | |
"О"=>"o","П"=>"p","Р"=>"r","С"=>"s","Т"=>"t", | |
"У"=>"u","Ф"=>"f","Х"=>"h","Ц"=>"c","Ч"=>"ch", | |
"Ш"=>"sh","Щ"=>"shch","Ъ"=>"","Ы"=>"y","Ь"=>"", | |
"Э"=>"e","Ю"=>"yu","Я"=>"ya","а"=>"a","б"=>"b", |
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
echo '<script>console.log('. ${1:$_SERVER} .');</script>'; |
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
if ($_SERVER['REQUEST_URI'] == '/women/majkifutbolki/288/') { | |
header("HTTP/1.0 404 Not Found"); | |
header("HTTP/1.1 404 Not Found"); | |
header("Status: 404 Not Found"); | |
// $this->redirect('404.php'); | |
$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found'); | |
//перенаправляем на страницу 404 | |
return $this->forward('error/not_found'); |
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
1. Prepros | |
http://alphapixels.com/prepros/ | |
Компиляция, сжатие, оптимизация и еще много полезных возможностей! | |
2. Webflow | |
https://webflow.com | |
drag & drop редактор для создания респонсивных сайтов. | |
3. html2pdf | |
http://www.html2pdf.it |
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
// Тест для netpeak ip old-ip 85.238.98.189 | |
if($_SERVER["REMOTE_ADDR"]=='217.20.181.97'){ | |
echo($url); | |
} |
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
// название переменных | |
obj, data, value, item, elem, num, arr |
- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
NewerOlder