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
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> | |
| <fontconfig> | |
| <!-- Default system-ui fonts --> | |
| <match target="pattern"> | |
| <test name="family"> | |
| <string>system-ui</string> | |
| </test> | |
| <edit name="family" mode="prepend" binding="strong"> |
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
| extern "C" { | |
| #include <winsock2.h> | |
| } | |
| // https://en.wikipedia.org/wiki/Multicast_address | |
| int main() | |
| { | |
| auto wsaData = WSAData {}; | |
| WSAStartup(MAKEWORD(2, 0), &wsaData); | |
| auto sock = socket(AF_INET, SOCK_DGRAM, 0); |
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 asyncio | |
| import datetime | |
| import os | |
| import sys | |
| import traceback | |
| from typing import Tuple | |
| from telethon.sync import TelegramClient, events | |
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
| #include <stdio.h> | |
| #include <stdbool.h> | |
| int main() | |
| { | |
| int t = 0xaabbccdd; | |
| bool * p = (bool *)&t; | |
| printf("%x\n", *p); | |
| printf("%x\n", *(p+1)); | |
| printf("%x\n", *(p+2)); | |
| printf("%x\n", *(p+3)); |
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
| gcc -c -Wall -Werror -fPIC lib.c | |
| gcc -shared -o lib.dll lib.o |
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
| # Environment: PowerShell 7 | |
| # Install: put runfile.ps1 in project directory | |
| # create subdirectory lib | |
| # download and put the algs4.jar in lib subdirectory | |
| # Usage: | |
| # it will auto detect args or file as input | |
| # .\runfile.ps1 HelloWorld.java <- no argument or input | |
| # .\runfile.ps1 HelloGoodbye.java aa bb <- passing args aa and bb | |
| # .\runfile.ps1 RandomWord.java <- interactive run (read from stdin) |
NewerOlder