Getting started:
Related tutorials:
| #loader { | |
| background: none repeat scroll 0 0 #ffffff; | |
| bottom: 0; | |
| height: 100%; | |
| left: 0; | |
| position: fixed; | |
| right: 0; | |
| top: 0; | |
| width: 100%; | |
| z-index: 9999; |
| function heightDetect() { | |
| $(".main_head").css("height", $(window).height()); | |
| }; | |
| heightDetect(); | |
| $(window).resize(function() { | |
| heightDetect(); | |
| }); |
| <?php | |
| /** | |
| * Makes the first letter of the line in the capital | |
| * @return string | |
| */ | |
| function upFirstLetter($str, $encoding = 'UTF-8') | |
| { | |
| return mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding) | |
| . mb_substr($str, 1, null, $encoding); | |
| } |
| add_header X-XSS-Protection "1; mode=block"; | |
| add_header X-Frame-Options "SAMEORIGIN"; | |
| add_header Referrer-Policy "strict-origin-when-cross-origin"; | |
| add_header X-Download-Options "noopen"; | |
| add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; | |
| add_header X-Content-Type-Options "nosniff"; | |
| add_header Content-Security-Policy-Report-Only ""; |
| /** | |
| * Customize locale Moment JS | |
| * @description Enables Moment.js plugin | |
| */ | |
| (function() { | |
| function plural(word, num) { | |
| var forms = word.split('_'); | |
| return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); | |
| } |
| import 'dart:html'; | |
| import 'package:angular2/core.dart'; | |
| import 'package:angular2/router.dart'; | |
| @Component( | |
| selector: 'my-app', | |
| styleUrls: const ['app_component.css'], | |
| template: ''' | |
| <h1>My First Angular 2 App</h1> |
| <?php | |
| /** | |
| * Функция склонения числительных в русском языке | |
| * | |
| * @param int $number Число которое нужно просклонять | |
| * @param array $titles Массив слов для склонения | |
| * @return string | |
| **/ | |
| $titles = array('котик', 'котика', 'котиков'); | |
| function declOfNum($number, $titles) |
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and PHP-FPM | |
| sudo yum install -y nginx php-fpm | |
| # Install PHP extensions | |
| sudo yum install -y php-devel php-mysql php-pdo \ | |
| php-pear php-mbstring php-cli php-odbc \ |
| wget -nd -r -P /Users/denisromanenko/Downloads/villa/ -A jpeg,jpg,bmp,gif,png --no-check-certificate --no-parent --timestamping --convert-links --page-requisites --no-directories --no-host-directories -erobots=off https://www.somesite/index.html |
Getting started:
Related tutorials: