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
читать Двенадцать факторов SAAS https://12factor.net/ru/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Markup | |
----------- | |
<div class="subscribe-widget clearfix"> | |
<h4>Subscribe to Our Newsletter</h4> | |
<!-- ===== MAILCHIMP FORM STARTS ===== --> | |
<form class="mailchimp inputSubscribeDiv"> | |
<!-- SUBSCRIPTION SUCCESSFUL OR ERROR MESSAGES --> | |
<input type="email" name="subscribe" id="subscriber-email" placeholder="Enter your Email" class="form-control"> | |
<button type="submit" id="subscribe-button" class="btn btn-blue ">Subscribe</button> | |
<h5 class="subscription-success"> </h5> |
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
Типы Данных Java: String, long, enum, Boolean | |
Гетеры, Сеттеры getName(), setName() | |
Взять текущий контекст - this | |
Object.equals() - сравнивает ссылки на объект а не поля объекта (сравнение происходит через вычисление Object.hashCode() (Park-Miller RNG) то бишь при перезагрузке JVM hash изменится) | |
Нестандартные Keyword (ключевые слова): | |
Native - метод реализован в нативном языке программирования (ASM, C++, C#) с помощью JNI (Java Native Interface) | |
Final - класс, метод или переменная (const) не может переопределена | |
Implements - наследование интерфейсов | |
Pojos - старый добрый объект javascript | |
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
-- Creating tables and columns in mysql database only if they do not exist | |
-- Создание таблиц и колонок в базе данных mysql только если их не существует | |
-- VARIANT 1 | |
-- Function columnExists (check column in table) | |
DROP FUNCTION IF EXISTS columnExists; | |
DELIMITER // | |
CREATE FUNCTION columnExists(t_table char(255),t_column char(255)) RETURNS boolean NOT DETERMINISTIC | |
BEGIN | |
SET @datatable := t_table, @datacolumn := t_column; |
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 session_start(); ?> | |
<?php echo $_SESSION['token'] .' YY '. $_POST['token'].'<br>'; | |
if ($_SERVER['REQUEST_METHOD'] == 'POST' | |
&& $_SESSION['token'] == $_POST['token']){ | |
echo '<script>alert("Успех");</script>'; | |
} ?> | |
<?php $_SESSION['token'] = md5(time()); ?> |