Skip to content

Instantly share code, notes, and snippets.

View SinZ163's full-sized avatar

Trent Monahan SinZ163

  • Telstra
  • Australia
View GitHub Profile
@roblabla
roblabla / protodef.json
Created March 20, 2017 11:35
forge-protodef
{
"types": {
"fml|hsMapper": ["mapper", {
"type": "i8",
"mappings": {
"0": "ServerHello",
"1": "ClientHello",
"2": "ModList",
"3": "RegistryData",
"-1": "HandshakeAck",
@inexorabletash
inexorabletash / @ Indexed DB - N-Dimensional Select V2.md
Last active July 18, 2022 11:03
@ Indexed DB - N-Dimensional Selection V2

Indexed DB - N-Dimensional Selection (V2)

This is a redo of the solution over in Indexed DB - N-Dimensional Selection but with a revised "API". The sample here takes a query in the form of an array of IDBKeyRange instances (or null), e.g.

select(index, [IDBKeyRange.bound(5, 7), null, IDBKeyRange.lowerBound(15000)], callback, complete);
@rossengeorgiev
rossengeorgiev / dota_gotd.py
Last active November 27, 2016 22:55
change filename
#!/usr/bin/env python
#
# pip install steam, dota2
#
import logging
import gevent
from steam import SteamClient
from dota2 import Dota2Client
from dota2.enums import EDOTAGCMsg
@inexorabletash
inexorabletash / @ Indexed DB - N-Dimensional Select.md
Last active April 16, 2024 20:38
Indexed DB - N-dimensional selection

Indexed DB - N-Dimensional Selection

The problem

We have an index with keys of the form:

[ dim1, dim2, dim3, ... ]

e.g. created with:

@RoyAwesome
RoyAwesome / (table) EntityFramework
Last active December 31, 2015 17:19
Notes for how Dota 2 interacts with it's Lua VM
Functions defined in dota\scripts\vscripts\framework\entities
--usage EntityFramework.CreateEntity(...)
CreateEntity [function, function: 0x169ab288]
GetScriptClassForDesignerName [function, function: 0x169a4d08]
GetNativeClassForScriptClass [function, function: 0x169a5258]
scriptClassTable [table, table: 0x169ab2c0]
InstallClasses [function, function: 0x169a77a8]
GetEntityHandle [function, function: 0x169ab310]
RegisterScriptClass [function, function: 0x169a7790]
@Dinnerbone
Dinnerbone / Since 1.2.3
Created March 4, 2012 18:16
Bugs I've fixed since 1.2.3!
Fixed:
- Fixed godmode exploit (Thanks md_5)
- Limit framerate on menu screens, no longer uses 100% cpu and make my computer melt
- Fixed fatal crash for converted worlds to anvil, when there's blocks at max height
- Fixed an old bug with signs clearing text while you're editing them in SMP
- Fixed incorrectly swapped en_GB and en_CA language details
- Fixed crash when logging in while there are blocks at maxheight at spawn
- Fixed TNT ghosts in multiplayer
- Fixed storage minecarts dropping enchanted items
- Fixed crashes on invalid server addresses when joining a server