Skip to content

Instantly share code, notes, and snippets.

@MightyPork
MightyPork / utf8_encode.c
Last active July 14, 2024 01:52
C function to encode a Unicode code point as UTF-8 byte array
#include <stdint.h>
/**
* Encode a code point using UTF-8
*
* @author Ondřej Hruška <ondra@ondrovo.com>
* @license MIT
*
* @param out - output buffer (min 5 characters), will be 0-terminated
* @param utf - code point 0-0x10FFFF
#!/bin/bash
user="minecraft"
session="mc-session"
serv_dir="/home/minecraft/server/"
usage() {
echo "Minecraft control tool"
echo "Usage:"
echo " start [minecraft-server.jar] start server"
@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
__author__ = 'Zeirison'
__version__ = '0.1'
import random
# enemy = int(input("Your opponent (1 - Human, 2 - Computer):"))
# size = int(input("Field size (1 - 3x3, 2 - 4x4, 3 - 5x5, 4 - 6x6:"))
enemy = 1
tic = 1
size = 1
/*
A Revised Font Stack
from A Way Back
http://www.awayback.com/revised-font-stack/
*/
/*