Skip to content

Instantly share code, notes, and snippets.

__ZN4core5slice6memchr6memchr17h34af94afc06c5321E http://localhost:8000/main.wasm:404210
__ZN81__LT_core__str__pattern__CharSearcher_u20_as_u20_core__str__pattern__Searcher_GT_10next_match17hc1707b766f0502daE http://localhost:8000/main.wasm:285037
__ZN4core3str29MatchIndicesInternal_LT_P_GT_4next17h1dff6cb86e588192E http://localhost:8000/main.wasm:272550
__ZN91__LT_core__str__MatchIndices_LT_P_GT__u20_as_u20_core__iter__traits__iterator__Iterator_GT_4next17h145cf846703825c7E http://localhost:8000/main.wasm:272979
dynCall_vii http://localhost:8000/main.wasm:1587687
dynCall_vii http://localhost:8000/main.js:10995
invoke_vii http://localhost:8000/main.js:10133
__ZN5alloc3str21__LT_impl_u20_str_GT_7replace17h4474238dc3cfeeaeE http://localhost:8000/main.wasm:283067
__ZN4sdl23log3log17hdf3b9889906e108cE http://localhost:8000/main.wasm:258389
__ZN4main4main28__u7b__u7b_closure_u7d__u7d_17hb104fc522ce8ab7eE http://localhost:8000/main.wasm:221259
use std::path::PathBuf;
use std::collections::{BTreeMap, HashMap, HashSet};
use std::thread;
use std::os::raw::c_void;
use std::rc::Rc;
use std::cell::{Cell, RefCell};
use std::i16;
use std::time::Instant;
use failure::{err_msg, Error};
@tanis2000
tanis2000 / SpatialHash.hx
Created May 13, 2019 19:01 — forked from AndreiRudenko/SpatialHash.hx
SpatialHash uniform-grid implementation
// SpatialHash uniform-grid implementation
// Broad-phase algorithm for collision detection
// Andrei Rudenko // SpatialHash.hx (24.07.2016)
import luxe.Vector;
import luxe.utils.Maths;
class SpatialHash {
public var min(default, null):Vector;
/*
------------------------------------------------------------------------------
Licensing information can be found at the end of the file.
------------------------------------------------------------------------------
cute_tiled.h - v1.02
To create implementation (the function definitions)
#define CUTE_TILED_IMPLEMENTATION
in *one* C/CPP file (translation unit) that includes this file
// process.name = "/Users/tanis/Documents/test-heaps/bin/main/Main-debug"
0 CGLChoosePixelFormat(attribs = {kCGLPFAAllowOfflineRenderers, kCGLPFAOpenGLProfile, kCGLOGLPVersion_Legacy, kCGLPFAColorSize, 32, kCGLPFADepthSize, 8, kCGLPFADoubleBuffer, kCGLPFAStencilSize, 8, kCGLPFADisplayMask, 1, 0}, pix = &0x7fbe17400020, npix = &2) = kCGLNoError
1 CGLRetainPixelFormat(pix = 0x7fbe17400020) = 0x7fbe17400020
2 CGLReleasePixelFormat(pix = 0x7fbe17400020)
3 CGLCreateContext(pix = 0x7fbe17400020, share = NULL, ctx = &0x7fbe1787f800) = kCGLNoError
4 CGLRetainContext(ctx = 0x7fbe1787f800) = 0x7fbe1787f800
5 CGLReleaseContext(ctx = 0x7fbe1787f800)
6 CGLReleasePixelFormat(pix = 0x7fbe17400020)
7 CGLSetSurface(ctx = 0x7fbe1787f800, cid = 0x1ede57, wid = 31027, sid = 4413) = kCGLNoError
9 CGLUpdateContext(ctx = 0x7fbe1787f800) = kCGLNoError
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x00007fff57004fc9 _platform_memmove$VARIANT$Haswell + 169
1 com.apple.driver.AppleIntelKBLGraphicsGLDriver 0x000000010c72a84d glrIntelRenderVertexArray + 1975
2 GLEngine 0x00007fff393f16d1 glDrawElements_Exec + 252
3 Main-debug 0x0000000104dfbc63 lime::_internal::backend::native::NativeOpenGLRenderContext_obj::drawElements(int, int, int, double) + 83 (NativeOpenGLRenderContext.cpp:2134)
4 Main-debug 0x000000010550d6cf h3d::impl::GlDriver_obj::draw(Dynamic, int, int) + 863 (GlDriver.cpp:2976)
5 Main-debug 0x00000001055b06d1 h3d::Engine_obj::renderBuffer(hx::ObjectPtr<h3d::Buffer_obj>, hx::ObjectPtr<h3d::Indexes_obj>, int, hx::Null<int>, hx::Null<int>) + 961 (Engine.cpp:314)
6 Main-debug 0x000000010561963b h2d::RenderContext_obj::drawTile(hx::ObjectPtr<h2d::Drawable_obj>, hx::ObjectPtr<h2d::Tile_obj>) + 8893
@tanis2000
tanis2000 / traverse_node.go
Created July 27, 2018 08:16 — forked from xeoncross/traverse_node.go
Simple DOM node traversal in golang using a very useful collector/matcher function
package main
import (
"bytes"
"fmt"
"io"
"strings"
"unicode"
"golang.org/x/net/html"
@tanis2000
tanis2000 / heaps.txt
Created September 22, 2017 17:29
heaps.txt
MacBookPro-Valerio:bin tanis$ gcc -o myapp -D INCLUDE_ALL -std=c11 app.c -lhl -lSDL2 -lopenal -I. -I../../hashlink/src/ -L../../hashlink -L/usr/local/opt/openal-soft/lib
Undefined symbols for architecture x86_64:
"_fmt_deflate_bound", referenced from:
_haxe_zip_Compress_run in app-cfad20.o
_hl_functions_ptrs in app-cfad20.o
"_fmt_deflate_buffer", referenced from:
_haxe_zip_Compress_execute in app-cfad20.o
_hl_functions_ptrs in app-cfad20.o
"_fmt_deflate_init", referenced from:
_haxe_zip_Compress_new in app-cfad20.o
@tanis2000
tanis2000 / rls.log
Created August 20, 2017 20:16
RLS log from the VSCode extension
DEBUG:rls::server: Language Server Starting up
TRACE:rls::server: reading: 1288 bytes
TRACE:rls::server: parse_message `{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":13915,"rootPath":"/Users/tanis/Documents/minigame-rust","rootUri":"file:///Users/tanis/Documents/minigame-rust","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true},"didChangeConfiguration":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true}},"textDocument":{"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"completionItem":{"snippetSupport":true}},"hover":{"dynamicRegistration":true},"signatureHelp":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true},"formatting":{"dynamicR
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5\build\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5\build\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
<Import Project="..\packages\Microsoft.Net.Compilers.2.2.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.2.2.0\build\Microsoft.Net.Compilers.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion