Gist for Ubuntu and Debian users
nginx 1.16.1 + push stream module latest
apt-get update -y \| <!DOCTYPE html> | |
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Live Demo</title> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;700&family=Space+Grotesk:wght@300;500;700&display=swap'); | |
| * { | |
| margin: 0; |
| <?php | |
| define('EPOCH', 1414213562373); | |
| define('NUMWORKERBITS', 10); | |
| define('NUMSEQUENCEBITS', 12); | |
| define('MAXWORKERID', (-1 ^ (-1 << NUMWORKERBITS))); | |
| define('MAXSEQUENCE', (-1 ^ (-1 << NUMSEQUENCEBITS))); | |
| class Snowflake |
| float f = (float) (Runtime.getRuntime().maxMemory() / 1024L / 1024L); | |
| if(f > MIN_HEAP){ | |
| LauncherFrame.main(args); | |
| }else{ | |
| try{ | |
| ArrayList<String> localArrayList = new ArrayList<String>(); | |
| String str = TGMMain.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath(); |
| package ru.aengine.util; | |
| public class OperationSystem { | |
| public static OS getPlatform() { | |
| String str = System.getProperty("os.name").toLowerCase(); | |
| if(str.contains("win")) return OS.WINDOWS; | |
| if(str.contains("mac")) return OS.MACOS; | |
| if(str.contains("solaris")) return OS.SOLARIS; | |
| if(str.contains("sunos")) return OS.SOLARIS; |
| package main.ru.aengine.noise; | |
| import java.util.Random; | |
| public class NoiseGenerator { | |
| private double seed; | |
| private long default_size; | |
| private int[] p; | |
| private int[] permutation; |
| package ru.aengine.tgm.util; | |
| import java.io.BufferedWriter; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStreamWriter; | |
| import java.io.UnsupportedEncodingException; | |
| /** |
| package ru.aengine.ndt; | |
| import java.io.*; | |
| import java.util.*; | |
| import java.util.zip.*; | |
| /** | |
| * Named Data Tags (NDT) - file format for save array map. | |
| * StreamReader class for read data from *.ndt file; | |
| */ |
| /** | |
| * Copyright (c) 2017, AEngine Official | |
| * MIT License | |
| * | |
| * Need: jQuery, Backbone & Lodash | |
| */ | |
| 'use strict'; | |
| // App | |
| let App = {}; |
| /** | |
| * Standalone extraction of Events, no external dependency required. | |
| * Degrades nicely when underscore are already available in the current | |
| * global context. | |
| * | |
| * Note that docs suggest to use underscore's `_.extend()` method to add Events | |
| * support to some given object. A `mixin()` method has been added to the Events | |
| * prototype to avoid using underscore for that sole purpose: | |
| * | |
| * var myEventEmitter = Events.mixin({}); |