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
server { | |
listen 443 ssl http2; | |
server_name sub.domain.com; | |
server_tokens off; | |
access_log /var/log/nginx/domain.com.access.log; | |
error_log /var/log/nginx/domain.com.error.log error; | |
ssl on; |
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
server { | |
listen 443 ssl http2; | |
server_name sub.domain.com; | |
server_tokens off; | |
access_log /var/log/nginx/sub.domain.com.access.log; | |
error_log /var/log/nginx/sub.domain.com.error.log error; | |
ssl on; |
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
UT_TIMEZONE_MIT = 1 | |
UT_TIMEZONE_HAST = 2 | |
UT_TIMEZONE_AKST = 3 | |
UT_TIMEZONE_AKDT = 4 | |
UT_TIMEZONE_PST = 5 | |
UT_TIMEZONE_PDT = 6 | |
UT_TIMEZONE_MST = 7 | |
UT_TIMEZONE_MDT = 8 | |
UT_TIMEZONE_CST = 9 | |
UT_TIMEZONE_CDT = 10 |
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
/* | |
Unix Time Conversion | |
by bugsy | |
v0.3 | |
http://forums.alliedmods.net/showthread.php?t=91915 | |
TimeZone data: http://www.epochconverter.com/epoch/timezones.php | |
Ported to Source Mod by Milutinke (ByM) | |
*/ |
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
String getRoman(int num) { | |
const List<int> iNums = [ | |
1, | |
4, | |
5, | |
9, | |
10, | |
40, | |
50, | |
90, |
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
stock void FormatSeconds(int starting, int& days, int& hours, int& minutes, int& seconds) | |
{ | |
days = starting / (24 * 3600); | |
starting = starting % (24 * 3600); | |
hours = starting / 3600; | |
starting %= 3600; | |
minutes = starting / 60 ; | |
starting %= 60; | |
seconds = starting; | |
} |
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
stock void RotateRelatively(float angles[3], float degree) | |
{ | |
float direction[3], normal[3]; | |
GetAngleVectors(angles, direction, NULL_VECTOR, normal); | |
float sin = Sine(degree * 0.01745328); // Pi/180 | |
float cos = Cosine(degree * 0.01745328); | |
float a = normal[0] * sin; | |
float b = normal[1] * sin; |
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 'dart:io'; | |
import 'dart:convert'; | |
enum Letters { vowels, consonants } | |
enum Sesso { male, female } | |
const Map<String, String> months = { | |
"Gennaio": "A", | |
"Febbraio": "B", | |
"Marzo": "C", |