Skip to content

Instantly share code, notes, and snippets.

View layou233's full-sized avatar
✍️

Launium layou233

✍️
View GitHub Profile
@layou233
layou233 / housing.cpp
Created May 9, 2025 15:08
Practice real estate system in C++
/**
* Copyright (C) 2025 Launium, all rights reserved.
* This is a practice project and comes with ABSOLUTELY
* NO WARRANTY, full of unsafe function calls, unverified code
* and your computer may end up nuked.
* DO NOT COPY ANY PART OF THE CODE or you may face
* attacks such as buffer overflow, code injection, etc.
* Anyway, use at your own risk. :)
* @date May 9th, 2025
*/
@layou233
layou233 / u128ls.go
Created August 9, 2023 05:00
SSE accelerated uint128 left shift in Go
package main
import "fmt"
func main() {
var x, y uint64 = 0x123456789abcdef0, 0xfedcba9876543213
fmt.Printf("Before shift: %016x%016x\n", x, y)
//y <<= 8
//x = x<<8 | y>>(64-8)
@layou233
layou233 / mcping.c
Last active February 24, 2023 02:24
MCPing for Windows
/*
This code was written in pure C.
Build it with: (Windows only)
gcc ./mcping.c -o mcping.exe -lws2_32 -O2
MCPing v0.1.1
By Launium 2023. GitHub @layou233.
License: CC-BY-SA 3.0
*/
@layou233
layou233 / x25519.go
Created December 22, 2022 09:19
X25519 example in Go
// X25519 example in Go
// Author: layou233
// License: WTFPL
package main
import (
"crypto/rand"
"encoding/hex"
"fmt"
@layou233
layou233 / LICENSE
Created August 28, 2021 10:34
Optifine Cape URL Generator
Copyright (c) 2021 layou233
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@layou233
layou233 / EsuDog.htm
Created February 11, 2021 06:58
EsuDog
<html><head><title>EsuDog</title><script>window.location.href='https://api.smokeclient.cn/qb-api/?qq='+prompt('EsuDog: Input QQ Number')</script></head></html>
@layou233
layou233 / ipRange.py
Created January 24, 2021 07:06
Expand IP ranges into a .txt file
from sys import version
if int(version[0])<3:
range=xrange
filename=input('File name(.txt): ')+'.txt'
with open(filename,'w') as file:
while True:
try:
ipstart,ipend=[i.split('.') for i in input('IP range(split by -): ').split('-')]
ipstart=[int(i) for i in ipstart]