Skip to content

Instantly share code, notes, and snippets.

View ci010's full-sized avatar
💭
Thinking

CI010 ci010

💭
Thinking
  • TimeZone GMT+8
View GitHub Profile
@3TUSK
3TUSK / A_letter_to_modders.md
Last active April 14, 2017 07:49
This is a letter to all Minecraft modders. TLDR: blocking i/o vs. nonblocking i/o in minecraft mod on main thread. Even though we suggest things, they are still our suggestions. We are here solely for discussing this topic, including our suggestions. If you want to express your support, don't click star, reply or simply give an emoji. Stargazer …

A LETTER TO ANY MODDERS WHO SEE THIS

First of all, happy new year!

This letter has sole purpose on request of threaded version checker, or more generally speaking, threaded I/O for any operations that involved with internet. If you are a player, you may ignore this letter as it would not matter much for you.

Well, let’s talk about the version check today.
Under most circumstances, one is always expected to have mods of latest version running in his/her modpack, as it will contains less bugs/malfunctions/any of unexpected behaviors. To ensure that, modders will usually apply version check mechanism onto their mod. This is with good motive isn’t it?

@RainWarrior
RainWarrior / grammar.js
Last active January 27, 2022 10:35
Animation State Machine grammar
{
"parameters": { "name": <time_value>, ... },
"clips": { "name": <clip>, ... },
"states": [ "name", ... ],
"transitions": { "name_from": "name_to", ... },
"start_state": "name"
}
<time_value> ::=
<number> // result = number; Constant value.
@AlexIIL
AlexIIL / EngineRenderTESR.java
Last active November 13, 2019 10:32
Minecraft Forge- Animated block models
package example;
// Imports missing for the sake of an example.
public class EngineRenderTESR extends TileEntitySpecialRenderer {
private final AnimatedBlockRenderer engineRenderer;
private final Variable progressVariable;
public EngineRenderTESR() {
// An example class would get the model by its blockstate resource location
@jewelsea
jewelsea / JavaFXTrayIconSample.java
Last active July 22, 2024 07:42
Demonstrate using the System Tray (AWT) to control a JavaFX application.
import javafx.application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.stage.*;
import javax.imageio.ImageIO;
import java.io.IOException;
@alojzije
alojzije / connectHTMLelements_SVG.png
Last active May 13, 2024 08:16
Connect two elements / draw a path between two elements with SVG path (using jQuery)
connectHTMLelements_SVG.png
title description date categories slug
QQ协议分析
QQ协议分析
2014-04-16
protocol
qq-protocol

一. 文字聊天协议族(TCPF, Text Chatting Protocol Family)