Skip to content

Instantly share code, notes, and snippets.

View williewillus's full-sized avatar

Vincent Lee williewillus

View GitHub Profile
@williewillus
williewillus / breakdown.txt
Last active June 20, 2016 20:22
Fluid Cap breakdown
Personal notes for fluid cap and general fluid grokking since this seems really unintuitive to me.
I have not worked with fluids before and the fluid cap seems very baggage-laden to me.
It feels held back by the previous implementation of Fluids,
and is not consistent with the interface of `IItemHandler`, the inventory cap.
Oh well. Here goes.
Classes:
- `IFluidHandler`: The Capability Interface for the fluid cap.

Git - Quick Primer

A fast-paced introduction to version control and git.

What is version control

Version control is maintaining a detailed report of changes that happen to your codebase. Good version control practice allows you to roll back mistakes, work on features in parallel, and combine them into a final product.

How does Git record history?

@williewillus
williewillus / blargh.js
Last active June 13, 2017 08:00
animation api grokking
/*
- Properties.StaticProperty (PropertyBool)
- when true, show the static parts of the model (the non animated ones)
- when false, show the animated parts
- Properties.AnimationProperty (IUnlistedProperty<IModelState>)
- The model is animated by rebaking it using the value of this property
What is a joint?
- basically, part of a model that you'd like to treat as 1 single unit for animation purposes
@williewillus
williewillus / foo.txt
Last active August 9, 2017 17:30
botania 1.12 progress
Botania 1.12 plans!
General
- Push major version to r1.10
Art Changes
- Merge in wiiv's new block and item textures and pylon models
- Update armor models to wiiv's new ones for the 1.8+ player model
+ Replace lexica botania landing page sprites with more vanilla-like 16x16 ones
+ Replace lexica botania landing page button animation stencil one I'll provide
@williewillus
williewillus / grammar.js
Last active November 4, 2017 15:08
loot table grammar
{
"pools": [ <lootpool> ... ] // Every pool is queried by the table the number of times specified in "rolls"
}
-------------
<lootpool> == {
"name": <autogenerated for vanilla pools | table-unique name for this pool>
"conditions": [ <lootcondition> ... ],
"rolls": <randomvaluerange>
@williewillus
williewillus / foo.json
Created December 19, 2017 00:03
mcpe entity models
"geometry.chicken": {
"texturewidth": 64,
"textureheight": 32,
"bones": [
{
"name": "head",
"pivot": [ 0.0, 9.0, -4.0 ],
"rotation": [ 0.0, 0.0, 0.0 ],
"cubes": [
{
{
"minecraft:entity": {
"format_version": "1.2.0",
"components": {
"minecraft:identifier": {
"id": "minecraft:ghast"
},
"minecraft:breathable": {
@williewillus
williewillus / foo.md
Last active April 20, 2019 20:46
1.9.4 te syncing

1.9.4 TE Syncing

Only accurate for 1922+

When the chunk/block data is sent (client receiving chunks from server):

  • getUpdateTag() called serverside to get compound to sync
  • handleUpdateTag() called to handle it clientside
  • what vanilla does
  • Writes ALL data into this tag by calling writeToNBT
@williewillus
williewillus / avg.awk
Last active December 10, 2019 09:26
Compilers final project testing
{
freqs[$1] += $2;
count[$1] += 1;
}
END {
for (test in freqs) {
avg = freqs[test] / count[test];
printf "%s %.2f\n", test, avg;
}
time="2020-11-13T04:13:04Z" level=info msg="webdav: /originals/ waiting for connection"
time="2020-11-13T04:13:04Z" level=info msg="webdav: /import/ waiting for connection"
time="2020-11-13T04:13:04Z" level=info msg="starting web server at 0.0.0.0:2342"
time="2020-11-13T04:13:15Z" level=info msg="session: open /photoprism/storage/cache/sessions.json: no such file or directory"
time="2020-11-13T04:13:17Z" level=info msg="photos: found 0 results for photo:true public:true dist:20 quality:3 count:60 order:newest merged:true [689.805µs]"
2020/11/13 04:13:37 Allocated new queue in 20.396µs; Capacity: 1257382
time="2020-11-13T04:13:45Z" level=info msg="photos: found 0 results for photo:true public:true dist:20 quality:3 count:60 order:newest merged:true [702.936µs]"
time="2020-11-13T04:13:49Z" level=info msg="Settings saved"
time="2020-11-13T04:13:49Z" level=info msg="Settings saved"
time="2020-11-13T04:13:51Z" level=info msg="Indexing originals..."