This file contains hidden or 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
# habraproxy.py — это простейший http-прокси-сервер, запускаемый локально (порт на ваше | |
# усмотрение), который показывает содержимое страниц Хабра. С одним исключением: после | |
# каждого слова из шести букв должен стоять значок «™». Примерно так: | |
# | |
# http://habrahabr.ru/company/yandex/blog/258673/ | |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
# Сейчас на фоне уязвимости Logjam все в индустрии в очередной раз обсуждают проблемы и | |
# особенности TLS. Я хочу воспользоваться этой возможностью, чтобы поговорить об одной из | |
# них, а именно — о настройке ciphersiutes. | |
# |
This file contains hidden or 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
<div class="bg-video"> | |
<video loop autoplay> | |
<!-- Insert your video below --> | |
<source src="" type="video/mp4"></source> | |
</video> | |
</div> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en" class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css"> | |
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet" type="text/css"> | |
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> | |
<title>Rajamaki new</title> |
This file contains hidden or 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
- var scripts=[] | |
- scripts.push('http://fonts.googleapis.com/css?family=Montserrat:400,700','http://fonts.googleapis.com/css?family=Lato:300,400,700,900') | |
- scripts.push("https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css") | |
each script in scripts | |
link(href=script rel='stylesheet' type='text/css') |
This file contains hidden or 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
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAtYogufqQUuAjrRx-Ps5hY0y9LXngGqMI"> | |
</script> | |
<style type="text/css"> | |
#google-container { | |
width: 100%; | |
height: 340px; | |
/*background-color: #e7eaf0;*/ | |
} |
This file contains hidden or 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 | |
// $namepreg = '/^[a-zA-Z \'\-]+$/'; | |
$namepreg = '/^[a-zA-ZöüõäÕÄÖÜñÑĀāČčĒēĪīŠšŪūŽž \'\-]+$/'; // Latvian letters | |
$mailpreg = '/^[A-Z0-9._%-]+@[A-Z0-9][A-Z0-9.-]{0,61}[A-Z0-9]\.[A-Z]{2,6}$/i'; | |
$phonepreg = '/^[\+0-9]+$/'; | |
if (!preg_match($namepreg, htmlspecialchars($firstName))) | |
{ |
This file contains hidden or 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 logArrayElements(element, index, array) { | |
console.log('a[' + index + '] = ' + element); | |
} | |
// Notice that index 2 is skipped since there is no item at | |
// that position in the array. | |
[2, 5, , 9].forEach(logArrayElements); | |
// logs: | |
// a[0] = 2 | |
// a[1] = 5 |
This file contains hidden or 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 class="" name="country" <?php echo setFieldStyle($errorFields, 'country') ?>> | |
<?php | |
// $current = $_SERVER['GEOIP_COUNTRY_CODE']; | |
// | |
// if ($_SERVER['GEOIP_COUNTRY_CODE'] == '') { | |
// $current = 'DEF'; | |
// } | |
$current = 'DEF'; | |
$country = array('Select Your Country *' => 'DEF', 'Argentina' => 'AR', 'Afghanistan' => 'AF', 'Albania' => 'AL', 'Algeria' => 'DZ', 'Andorra' => 'AD', 'Angola' => 'AO', 'Anguilla' => 'AI', 'Antigua and Barbuda' => 'AG', 'Armenia' => 'AM', 'Aruba' => 'AW', 'Australia' => 'AU', 'Austria' => 'AT', 'Azerbaijan' => 'AZ', 'Bahamas' => 'BS', 'Bahrain' => 'BH', 'Bangladesh' => 'BD', 'Barbados' => 'BB', 'Belarus' => 'BY', 'Belgium' => 'BE', 'Belize' => 'BZ', 'Bermuda' => 'BM', 'Bhutan' => 'BT', 'Bolivia' => 'BO', 'Bosnia and Herzegovina' => 'BA', 'Brazil' => 'BR', 'Brunei' |
This file contains hidden or 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
[[$HTML_START]] | |
[[$HEADER]] | |
[[addAsset? &code=`<style>.breadcrumbs{display:none;}</style>`]] | |
<link href="[[++assets_common_path]]/css/mt4-se/landing/s-e.css" rel="stylesheet" type="text/css"/> | |
[[--addAsset?&beforeBody=` | |
<script> | |
// 1. This code loads the IFrame Player API code asynchronously. | |
var tag = document.createElement('script'); | |
tag.src = "https://www.youtube.com/iframe_api"; |
This file contains hidden or 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
[[$HTML_START]] | |
[[$HEADER]] | |
[[addAsset? &code=`<style>.breadcrumbs{display:none;}</style>`]] | |
<link href="[[++assets_common_path]]/css/mt4-se/landing/s-e.css" rel="stylesheet" type="text/css"/> | |
[[addAsset?&beforeBody=` | |
<script> | |
// 2. This code loads the IFrame Player API code asynchronously. | |
var tag = document.createElement('script'); | |
tag.src = "https://www.youtube.com/iframe_api"; |