Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

mudlee

🏠
Working from home
View GitHub Profile
@mudlee
mudlee / log
Created Jan 18, 2020
OP OTA update
View log
mudlee@zerg:~/Downloads/ota/output$ ./fastboot update images.zip
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: e5a9f9c
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.001s]
Setting current slot to 'a' OKAY [ 0.007s]
extracting boot.img (64 MB) to disk... took 0.187s
@mudlee
mudlee / .log
Created Dec 24, 2019
Nuklear Segfault
View .log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000012c0b0f00, pid=5477, tid=775
#
# JRE version: OpenJDK Runtime Environment (11.0.3+7) (build 11.0.3+7)
# Java VM: OpenJDK 64-Bit Server VM (11.0.3+7, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [liblwjgl_stb.dylib+0x3af00]
[error occurred during error reporting (printing problematic frame), id 0xe0000000, Internal Error (../../src/hotspot/os/bsd/decoder_machO.hpp:43)]
@mudlee
mudlee / .java
Created Dec 24, 2019
Nuklear code
View .java
package spck.engine.ui;
import org.lwjgl.BufferUtils;
import org.lwjgl.nuklear.*;
import org.lwjgl.opengl.GL41;
import org.lwjgl.stb.STBTTAlignedQuad;
import org.lwjgl.stb.STBTTFontinfo;
import org.lwjgl.stb.STBTTPackContext;
import org.lwjgl.stb.STBTTPackedchar;
import org.lwjgl.system.MemoryStack;
View gist:ad4d36dfde5ca04d2adf7f2bf76dc2e7
Process: java [1234]
Path: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java
Identifier: java
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: idea [654]
Responsible: idea [654]
User ID: 501
Date/Time: 2019-12-01 10:01:41.288 +0100
@mudlee
mudlee / render.java
Created Nov 6, 2018
Open GL rendering logic
View render.java
package spck.engine.framework;
import org.lwjgl.opengl.GL41;
import org.lwjgl.system.MemoryUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import spck.engine.bus.LifeCycle;
import spck.engine.bus.MessageBus;
import spck.engine.debug.Stats;
import spck.engine.ecs.ECS;
@mudlee
mudlee / pom.xml
Created Aug 22, 2018
building mods
View pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven.plugins.version}</version>
<configuration>
<outputDirectory>../build/mods</outputDirectory>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
View .java
OUTPUT
[20:42:27.567] 1095 [main] DEBUG com.intermetto.engine.util.StaticMeshLoader - # Processing 2 materials...
[20:42:27.568] 1096 [main] DEBUG com.intermetto.engine.util.StaticMeshLoader - Processing [0] material...
0.6-0.6-0.6 - result: 0
0.0-0.0-0.0 - result: 0
0.0-0.0-0.0 - result: 0
@mudlee
mudlee / pid.log
Created Apr 7, 2018
LWJGL profiling
View pid.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000013ed33b82, pid=1177, tid=81935
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.4+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.4+11, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [GLProfilerFBDisp+0x36b82] gloGetCGLDispatch+0xd3c3
#
View compile error
Compiling app_dirs v1.1.1
error[E0619]: the type of this value must be known in this context
--> /Users/mudlee/.cargo/registry/src/github.com-1ecc6299db9ec823/app_dirs-1.1.1/src/imp/platform/macos.rs:10:40
|
10 | Ok(Component::RootDir.as_ref().into())
| ^^^^
error: aborting due to previous error
error: Could not compile `app_dirs`.
View lambdas.java
batchedEntities.values()
.stream()
.map(BatchedEntities::getEntities)
.collect(Collectors.toList())
.stream()
.flatMap(List::stream)
.collect(Collectors.toList());
You can’t perform that action at this time.