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
// Prime Test for int // | |
// Switch will compiled into jump table in Release mode | |
// Slower when run on Debug mode | |
// Very stupid but useful | |
// Try to test execution time compare to normal version | |
// Speed up 6 - 7 times in my machine | |
// For Test the range of 2147000000 to 2147483646 for 10 times |
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
document.querySelectorAll('*').forEach(e => e.style.fontFamily = "Microsoft JhengHei"); |
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
int[] flag = { 0x43, 0x6B, 0x66, 0x6B, 0x62, 0x75, 0x6C, 0x69, 0x4C, 0x45, 0x5C, 0x45, 0x5F, 0x5A, 0x7E, 0x1C, 0x07, 0x25, 0x25, 0x29, 0x70, 0x17, 0x34, 0x39, 0x01, 0x16, 0x49, 0x4C, 0x20, 0x15, 0x0B, 0x0F, 0xF7, 0xEB, 0xFA, 0xE8, 0xB0, 0xFD, 0xEB, 0xBC, 0xF4, 0xCC, 0xDA, 0x9F, 0xF5, 0xF0, 0xE8, 0xCE, 0xF0, 0xA9 }; | |
for (int i = 0; i < flag.Length; i++) | |
{ | |
((char)(flag[i] ^ i * 4)).Print(); | |
} | |
// CongratulationF Game Clear! Password is Thr3EDPr0m |
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
// https://github.com/CWKSC/Lagrange-Polynomial | |
// https://github.com/CWKSC/MyLib_Csharp | |
(double, double)[] points = { | |
(0, 4), | |
(1, 1), | |
(2, 3), | |
(3, 3), | |
(4, 2), | |
(5, 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
rm -rfv ./{*,.*} |
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
function changeSymbol(target, to, expr) | |
function dfs(expr) | |
args = expr.args | |
for i in 1:length(args) | |
arg = args[i] | |
if arg isa Expr | |
dfs(arg) | |
elseif arg isa Symbol | |
if arg == target | |
args[i] = to |
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 os | |
DATABASES = { | |
'default': { | |
'ENGINE': os.environ.get('DATABASE_ENGINE'), | |
'NAME': os.environ.get('DATABASE_NAME'), | |
'USER': os.environ.get('DATABASE_USER'), | |
'PASSWORD': os.environ.get('DATABASE_PASSWORD'), | |
'HOST': os.environ.get('DATABASE_HOST'), | |
'PORT': os.environ.get('DATABASE_PORT'), |
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
*.zip | |
*.tar.gz | |
.DS_Store | |
build/ | |
out/ | |
.gradle/7.1/executionHistory/executionHistory.bin | |
.gradle/7.1/executionHistory/executionHistory.lock | |
.gradle/7.1/fileHashes/fileHashes.bin | |
.gradle/7.1/fileHashes/fileHashes.lock | |
.gradle/7.1/fileHashes/resourceHashesCache.bin |
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
python -m venv venv | |
.\venv\Scripts\activate | |
python -m pip install --upgrade pip | |
pause | |
deactivate |