Discover gists
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.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Collections.Concurrent; | |
class Server | |
{ | |
private const int DEFAULT_BUFLEN = 512; | |
private const int DEFAULT_PORT = 27015; | |
private static ConcurrentQueue<(TcpClient, byte[])> messageQueue = new ConcurrentQueue<(TcpClient, byte[])>(); |
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://docs.google.com/forms/d/e/1FAIpQLSch6PbZPbPKwl0a3IOLxNI2Uq8y9QLfLwESvul5OrcGqo_5nw/viewform?usp=pp_url&entry.1175305726=4&entry.756296171=Millennials%20(1981%20-%201996)&entry.1915775774=Yes%20%2F%20C%C3%B3&entry.1942814050=Under%2018%20%2F%20D%C6%B0%E1%BB%9Bi%2018%20tu%E1%BB%95i&entry.818140994=Male%20%2F%20Nam&entry.1421751229=Over%208%20million%20VND%20%2F%20Tr%C3%AAn%208%20tri%E1%BB%87u%20VND&entry.822011090=%C3%8Dt%20h%C6%A1n%201%20l%E1%BA%A7n%2Fn%C4%83m%20(Less%20than%20once%20a%20year)&entry.188630822=D%C6%B0%E1%BB%9Bi%205%20m%C3%B3n%20(Less%20than%205%20items)&entry.1678513644=H%C6%A1n%20500%2C000%20VND%20%2F%20More%20than%20500%2C000%20VND&entry.2130161866=Instagram&entry.111286277=Often%20%2F%20Th%C6%B0%E1%BB%9Dng%20xuy%C3%AAn&entry.1480743739=No%20change%20%2F%20Kh%C3%B4ng%20thay%20%C4%91%E1%BB%95i&entry.624099616=3&entry.1594427050=3&entry.1698722485=Fear%20of%20missing%20out%20-%20FOMO%20%2F%20C%E1%BA%A3m%20gi%C3%A1c%20%22s%E1%BB%A3%20l%E1%BB%97i%20m%E1%BB%91t%22&entry.1675493514=1&entry. |
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
Log uploaded on Thursday, March 13, 2025, 3:03:18 PM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
[SYR] Processor Framework(syrchalis.processor.framework): ProcessorFramework(1.0.0) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) | |
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:25.2.3), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1.7,fv:1.1.9), VWEMakeshift(1.0.0) | |
Medieval Overhaul(DankPyon.Medieval.Overhaul): MedievalOverhaul(1.0.0) | |
[SR]Factional W |
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; | |
using TMPro; | |
using UnityEngine; | |
public class Counter : MonoBehaviour | |
{ | |
[SerializeField] private InputHandler _inputHandler; | |
[SerializeField] private TextMeshProUGUI _textMeshPro; | |
[SerializeField] private float _delay = 0.5f; |
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
Log uploaded on Thursday, March 13, 2025, 9:08:10 PM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) | |
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies) | |
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4) | |
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:25.2.18), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1. |
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
# mkdir -p ./ollama/ollama-webui | |
services: | |
ollama: | |
image: ollama/ollama:latest | |
ports: | |
- 7869:11434 | |
volumes: | |
- ./ollama:/root/.ollama | |
container_name: ollama |
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
#define BLYNK_TEMPLATE_ID "TMPL3gjsj46Kq" | |
#define BLYNK_TEMPLATE_NAME "Simulation for Home Automation" | |
#define BLYNK_AUTH_TOKEN "5Vd8XVTVYgY0GQnKttQ1_vfRqCAw9tdK" | |
#define BLYNK_PRINT Serial | |
#include <WiFi.h> | |
#include <WiFiClient.h> | |
#include <BlynkSimpleEsp32.h> | |
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
Infinite Scrolling va Pagination – Serverdan optimal ma’lumot olish | |
const { | |
data, | |
fetchNextPage, | |
hasNextPage, | |
isFetchingNextPage, | |
} = useInfiniteQuery( | |
["users"], | |
({ pageParam = 1 }) => fetchUsers(pageParam), | |
{ |
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
Env : sandbox | |
clientPrivateKey : 0xb78b8b1c97d0cafb1b3f6103a074c310ede1f50cce01455a115428c1b3eb083a | |
clientSWA : 0x4C7F6B24AdE9A9e91a1b763728Ec26DbC7002969 | |
{ | |
"jsonrpc": "2.0", | |
"id": "e5e09c07-1e6b-4cec-86cd-02b9ccc8b196", | |
"error": { | |
"code": -32603, | |
"message": "Internal Error, Please try again later", |
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
from datetime import datetime | |
from os import system | |
import requests | |
import json | |
## Please install ffmpeg before running this script and make sure it's in your PATH | |
## brew install ffmpeg | |
## Please install requests before running this script | |
## pip3 install requests |