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"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Пример зацикленной SVG-анимации, заданной в CSS</title> | |
</head> | |
<body> | |
<style> | |
* { |
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
List list = new ArrayList(); | |
try { | |
list = Files.readAllLines(Paths.get(this.fullFileName), StandardCharsets.UTF_8); | |
} catch (IOException e) {} |
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 Singleton | |
{ | |
private static Singleton singletone = new Singleton(); | |
private static int counter = 0; | |
private Singleton() {} | |
static Singleton getInstance() { | |
return singletone; | |
} | |
} |
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 FileCyrillic | |
{ | |
public static void main(String[] args) throws IOException | |
{ | |
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); | |
String fileName = reader.readLine(); | |
final BufferedReader br = new BufferedReader( new InputStreamReader(new FileInputStream(fileName), | |
"UTF8")); | |
String nextString; | |
while ((nextString = br.readLine()) != null) { |
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
final BufferedReader br = new BufferedReader( | |
new InputStreamReader( | |
new FileInputStream(fileName), "UTF8")); |
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 static void sort(int[] array) | |
{ | |
boolean thereIsBubbling; | |
int temp; | |
do { | |
thereIsBubbling = false; | |
for (int i = 0; i < array.length - 1; i++) | |
{ | |
if (array[i] > array[i + 1]) | |
{ |
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
<ul> | |
<li> | |
Один</li><li> | |
Два</li><li> | |
Три</li> | |
</ul> |
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 | |
$fh = fopen("read.php","r"); | |
if (!$fh) die("Cannot open file"); | |
while (!feof ($fh)) | |
{ | |
$line = fgets($fh); | |
echo $line,"<br>"; | |
} | |
fclose($fh); |
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
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace(); | |
for (StackTraceElement element : stackTraceElements) | |
{ | |
System.out.println(element.getMethodName()); | |
} |
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
<video | |
controls | |
preload="metadata" | |
width="777" height="777"> | |
poster= | |
<source src="video.mp4" type="video/mp4"> | |
<source src="video.ogv" type="video/ogg"> | |
<source src="video.webm" type="video/webm"> | |
</video> |
NewerOlder