Skip to content

Instantly share code, notes, and snippets.

View williewillus's full-sized avatar

Vincent Lee williewillus

View GitHub Profile
LoadTexture('bullet1', 'THlib\\bullet\\bullet1.png', true)
LoadImageGroup('preimg', 'bullet1', 80, 0, 32, 32, 1, 8)
LoadImageGroup('arrow_big', 'bullet1', 0, 0, 16, 16, 1, 16, 2.5, 2.5)
LoadImageGroup('gun_bullet', 'bullet1', 24, 0, 16, 16, 1, 16, 2.5, 2.5)
LoadImageGroup('gun_bullet_void', 'bullet1', 56, 0, 16, 16, 1, 16, 2.5, 2.5)
LoadImageGroup('butterfly', 'bullet1', 112, 0, 32, 32, 1, 8, 4, 4)
LoadImageGroup('square', 'bullet1', 152, 0, 16, 16, 1, 16, 3, 3)
LoadImageGroup('ball_mid', 'bullet1', 176, 0, 32, 32, 1, 8, 4, 4)
LoadImageGroup('mildew', 'bullet1', 208, 0, 16, 16, 1, 16, 2, 2)
LoadImageGroup('ellipse', 'bullet1', 224, 0, 32, 32, 1, 8, 4.5, 4.5)
inet <public-ip-1> 255.255.254.0 NONE
inet alias <public-ip-2> 255.255.255.255
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..."
@williewillus
williewillus / foo.md
Last active December 25, 2020 08:02
Advent of Code in C - Challenge Guidelines

Want to do Advent of Code in pure C? Let's do 2020's series together.

Leaderboard

Join my leaderboard: 21245-df3e4d76

Why?

Why not?

@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;
}
@williewillus
williewillus / 1132_to_114.xml
Last active September 24, 2024 10:24
1.13.2 -> 1.14 migration mappings
<?xml version="1.0" encoding="UTF-8"?>
<migrationMap>
<name value="1.13.2 to 1.14" />
<description value="1.13.2 to 1.14 MCP changes" />
<entry oldName="net.minecraft.GameVersion" newName="net.minecraft.util.MinecraftVersion" type="class" />
<entry oldName="net.minecraft.advancements.AdvancementList.Listener" newName="net.minecraft.advancements.AdvancementList.IListener" type="class" />
<entry oldName="net.minecraft.advancements.RequirementsStrategy" newName="net.minecraft.advancements.IRequirementsStrategy" type="class" />
<entry oldName="net.minecraft.advancements.criterion.AbstractCriterionInstance" newName="net.minecraft.advancements.criterion.CriterionInstance" type="class" />
<entry oldName="net.minecraft.block.Block.EnumOffsetType" newName="net.minecraft.block.Block.OffsetType" type="class" />
<entry oldName="net.minecraft.block.BlockAbstractBanner" newName="net.minecraft.block.AbstractBannerBlock" type="class" />
{
"minecraft:entity": {
"format_version": "1.2.0",
"components": {
"minecraft:identifier": {
"id": "minecraft:ghast"
},
"minecraft:breathable": {
@williewillus
williewillus / gitprimer.md
Last active August 2, 2024 09:59
Git Primer

Git - Quick Primer

A fast-paced introduction to version control and git. If you want the full blown experience, see the git scm book: https://git-scm.com/book/en/v2

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 / 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": [
{
@williewillus
williewillus / primer.md
Last active September 23, 2024 02:37
1.13/1.14 update primer

This primer is licensed under CC0, do whatever you want.

BUT do note that this can be updated, so leave a link here so readers can see the updated information themselves.

1.13 and 1.14 are lumped together in this doc, you're on your own if you just want to go to 1.13 and not 1.14, for some reason.

1.15 stuff: https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e

Things in Advance

  • ResourceLocation now throw on non-snake-case names instead of silently lowercasing for you, so you probably should go and change all those string constants now. More precisely, domains must only contain alphanumeric lowercase, underscore (_), dash (-), or dot (.). Paths have the same restrictions, but can also contain forward slashes (/).