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
| public class Main { | |
| public static void main(String[] args) { | |
| float a = 5, b = 3f, h = 3.5f;// a - довжина, b - ширина, h - висота | |
| float V = ...; | |
| System.out.println(V); | |
| } | |
| } |
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
| /* | |
| Це багатостроковий коментар, який ніяк не впливає на виконання програми | |
| Тут можна написати хто створив це файл, або інші відомості, які мають значення | |
| для читача коду, але не мають значення для компілятора(хто не знає що це таке, прочитайте) | |
| Приміть до уваги, ім'я файлу та ім'я класу, який описаний нижче повинні співпадати | |
| */ | |
| class ClassTask1{ | |
| public static void main(String[] args){ | |
| // Це одностроковий коментар | |
| // System.out.println - це функція(інструкція), яка виклакається для виводу тексту або значення якоїсь змінної в консоль |
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 COLUMN_TYPES = ["col-sm-", "col-md-", "col-lg-"]; | |
| var mapToRevert = {}; | |
| var widthBefore = null; | |
| var collapsedElements = null; | |
| function beforePrint() { | |
| widthBefore = document.body.style.width; | |
| document.body.style.width = "600px"; | |
| collapsedElements = $('.collapse'); |
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 data = "username=" + encodeURIComponent($scope.username) + | |
| "&password=" + encodeURIComponent($scope.password); | |
| $http({ | |
| method: 'POST', | |
| url: 'login', | |
| data: data, | |
| headers: { | |
| 'Content-Type': 'application/x-www-form-urlencoded' | |
| } |
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
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| /** | |
| * Created by FreeFly on 13.04.2016. | |
| */ | |
| public class IOExample { | |
| public static void main(String[] args) throws FileNotFoundException { |
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
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.stereotype.Controller; | |
| import org.springframework.web.bind.annotation.RequestMapping; | |
| import org.springframework.web.bind.annotation.ResponseBody; | |
| import javax.servlet.http.HttpServletRequest; | |
| @EnableAutoConfiguration |
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 | |
| //*************** | |
| //тут багато коду | |
| //*************** | |
| page_footer(); | |
| $date = date("Y-m-d H:i:s"); | |
| $userIp = $_SERVER['REMOTE_ADDR']; | |
| $lastLineInFile = "[$date] $userIp\r\n"; | |
| $file = fopen("file.txt", "a+"); |
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
| Hello, dear user :) | |
| <?php | |
| $date = date("Y-m-d H:i:s"); | |
| $userIp = $_SERVER['REMOTE_ADDR']; | |
| $lastLineInFile = "[$date] $userIp\r\n"; | |
| $file = fopen("file.txt", "a+"); | |
| fwrite($file, $lastLineInFile); | |
| fclose($file); |
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
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int NOD(int a, int b) { | |
| if (a == 0) { | |
| return b; | |
| } | |
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
| import java.util.Scanner; | |
| class Human{ | |
| int age; | |
| String name; | |
| public void sayAboutSelf(){ | |
| System.out.println("My name is " + this.name + ". I am " + this.age + " years old."); | |
| } | |
| } |