This file contains 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
const int primes[] = {2, | |
3, | |
5, | |
7, | |
11, | |
13, | |
17, | |
19, | |
23, | |
29, |
This file contains 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
1. Всем неподвижным объектам делаем свойство Static | |
2. Всем моделям в которых не используется анимация отменяем импорт анимации | |
3. Группы объектов позиционируем в коорд. (0,0,0). | |
4. Если необходимо смаштабировать | |
а) не пропорционально - делаем это в 3D редакторе, так как масштабы типа (1, 1.1, 2.5) создают дополнительный Draw Call | |
б) пропорционально - меняем масштаб в панели импорта модели. | |
5. По возможности все объекты держать а сцене в качестве префабов, кроме групп объектов(контейнеров) | |
6. Не делать из группы префабов новый префаб, так как связь элементов группы потеряется. | |
7. Проверять какие объекты должны отбрасывать/отражать тени, какие нет, так как по умолч. параметры Cast Shadows и Receive Shadows включенны. |
This file contains 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
using System; | |
using System.Collections; | |
class Example | |
{ | |
public static void Main() | |
{ | |
// Create a new hash table. | |
// | |
Hashtable openWith = new Hashtable(); |
This file contains 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 Foreign.Java | |
import Data.Maybe | |
import Foreign.Java.Bindings.Support | |
import Data.Int | |
import Data.Word |
This file contains 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 javafx.application.Application; | |
import javafx.beans.property.*; | |
import javafx.beans.value.*; | |
import javafx.event.EventHandler; | |
import javafx.scene.Scene; | |
import javafx.scene.control.*; | |
import javafx.scene.input.*; | |
import javafx.scene.layout.HBox; | |
import javafx.stage.Stage; | |
This file contains 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 static enumeration.EnumerateWindows.Kernel32.*; | |
import static enumeration.EnumerateWindows.Psapi.*; | |
import static enumeration.EnumerateWindows.User32DLL.*; | |
import com.sun.jna.Native; | |
import com.sun.jna.Pointer; | |
import com.sun.jna.platform.win32.WinDef.HWND; | |
import com.sun.jna.ptr.PointerByReference; | |
public class EnumerateWindows { | |
private static final int MAX_TITLE_LENGTH = 1024; |
This file contains 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.*; | |
import java.io.*; | |
import java.security.*; | |
public class ChangePassword | |
{ | |
private final static JKS j = new JKS(); | |
public static void main(String[] args) throws Exception | |
{ |
This file contains 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
rem enum WdSaveFormat | |
const wdFormatDocument = 0 rem <-- DOC | |
const wdFormatDocument97 = 0 | |
const wdFormatTemplate = 1 | |
const wdFormatTemplate97 = 1 | |
const wdFormatText = 2 | |
const wdFormatTextLineBreaks = 3 | |
const wdFormatDOSText = 4 | |
const wdFormatDOSTextLineBreaks = 5 |
This file contains 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
private void InitSerilog() | |
{ | |
var logPath=Context.Server.MapPath(@"~/Logs"); | |
var factory = new LoggerConfiguration() | |
.Enrich.FromLogContext() | |
.Enrich.WithThreadId() | |
.Enrich.With(new HttpRequestIdEnricher()) | |
.MinimumLevel.Verbose(); | |
//.WriteTo.ColoredConsole( | |
////outputTemplate: "{Timestamp:o} [{Level}] [{SourceContext:l}] ({ThreadId}) [{NDC}]{NewLine}{Message}{NewLine}{Exception:l}" |
This file contains 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
using System; | |
using System.Collections.Concurrent; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json.Linq; | |
using SamuelServer.Common.Communication; | |
using SamuelServer.Common.Communication.Interfaces; | |
using SamuelServer.Common.Exceptions; | |
using SamuelServer.Common.Interfaces; | |
using SamuelServer.Common.Wrappers; | |
using SamuelServer.IOCCommon.Attributes; |
OlderNewer