Skip to content

Instantly share code, notes, and snippets.

View nickyvanurk's full-sized avatar
💭
Open for work

Nick van Urk nickyvanurk

💭
Open for work
View GitHub Profile
@rotoglup
rotoglup / 201909 - a look into threejs editor.md
Last active July 30, 2024 15:38
201909 - A look into threejs editor app

A look into threejs editor

My notes while reading the source code from threejs Editor app, as I've been curious about :

  • the editor architecture
  • the undo/redo system
  • the camera control behaviour & code
  • the object transform gizmos behaviours & code
@kenji-miyake
kenji-miyake / how-to-generate-xyz-tiles-using-qgis3.md
Created June 21, 2019 03:43
How to generate XYZ tiles using QGIS3

How to generate XYZ tiles using QGIS3

Overview

QGIS3 has a tool called 'gdal2tiles.py' which can generate map tiles, but currently, it only supports TMS, not XYZ. However, QGIS3 loads XYZ by default and requires checkbox for TMS, so it's better to convert TMS to XYZ.

The difference between TMS and XYZ is just the name of Y-coordinate, so renaming works well. tms2xyz.py is a script for that.

@BenDol
BenDol / Flicker Movement - Client Network Data
Last active December 16, 2024 15:29
Okay so I've been researching this movement flickering issue. I compiled some client network sniffs of the movement data and flattened them out. Each time I observed a flicker used a macro that `/say here` so I could see if there are any strange position data sent to the client from our core. Not sure if there is anything strange happening.
Flicker Movement Client Network Data:
* -flicker = the moment I observed a flicker in game
--[1]----------------------
X: -602.9882 Y: -4252.852 Z: 38.95627 O: 6.067197 (MSG_MOVE_SET_FACING, Time: 225716)
X: -602.6502 Y: -4252.942 Z: 38.95627 O: 5.925826 (MSG_MOVE_SET_FACING, Time: 225766) (50ms)
X: -602.4381 Y: -4253.033 Z: 38.95627 O: 5.772674 (MSG_MOVE_SET_FACING, Time: 225799) (33ms)
X: -602.2281 Y: -4253.159 Z: 38.95627 O: 5.654864 (MSG_MOVE_SET_FACING, Time: 225834) (35ms)
X: -601.9659 Y: -4253.368 Z: 38.95627 O: 5.525274 (MSG_MOVE_SET_FACING, Time: 225882) (500ms)
knmi.nl
rijksoverheid.nl
overheid.nl
duo.nl
politie.nl
koninklijkhuis.nl
defensie.nl
kadaster.nl
werkenbijdefensie.nl
cbs.nl
@luismts
luismts / GitCommitBestPractices.md
Last active July 19, 2025 20:35
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

Reading and Rendering the Terrain

Loading the Terrain Scene Data Into Memory

The first step is to decompile MainField.tscb into an array containing material data and area data.

The tscb file can be decompiled using the tscb file specification or a tscb tool.

The Material Data will be used later by .mate.stera files. The Area Data is used to layout .stera files across the world map.

@mubix
mubix / infosec_newbie.md
Last active July 10, 2025 04:30
How to start in Infosec
@vrinek
vrinek / gist:bda51f6fc8b22b5df301
Last active December 17, 2024 14:15
Blizzard Software Engineering Reading

Blizzard Software Engineering Reading

by Jay Baxter (circa 2009)

Associate developer

"This list is for people who want to become Associate Software Engineers at Blizzard. An associate should have skills at the level indicated by these books. Note that this is almost completely focused on C++ programming. This list is incomplete. I need a book on how to become a professional. I've listed several books that give examples of professional behavior, but not one on the actual training."

Programming: Principles and Practice Using C++

by Bjarne Stroustrup

@IGZalbertogregoris
IGZalbertogregoris / increase_network_latency.sh
Created March 17, 2014 07:34
Emulate network latency in Linux
# Install iproute (Ubuntu)
sudo apt-get install iproute
# Increase network latency in eth0 (250 milliseconds)
sudo tc qdisc add dev eth0 root netem delay 250ms
# Delete network modifications
sudo tc qdisc del dev eth0 root netem
# To make this change in localhost you must only replace "eth0" to "lo" ( --- WARNING --- in this case time will double )
@mpwoz
mpwoz / setup.sh
Last active September 29, 2023 19:47
setup for a new linux machine
# Make sure we're up to date
apt-get -y update
apt-get -y dist-upgrade
# Some basic tools to get started
apt-get -y install vim-gtk build-essential
# Install and setup Git
apt-get -y install git
git config --global user.name "Martin Wozniewicz"