Skip to content

Instantly share code, notes, and snippets.

@neshume
neshume / GetCpuTempAndroid.java
Created October 7, 2018 07:11 — forked from ValCanBuild/GetCpuTempAndroid.java
A way to get the CPU temperature from an android device by using the sys/class/thermal/temp command
public float getCpuTemp() {
Process p;
try {
p = Runtime.getRuntime().exec("cat sys/class/thermal/thermal_zone0/temp");
p.waitFor();
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = reader.readLine();
float temp = Float.parseFloat(line) / 1000.0f;
@neshume
neshume / nodejs.md
Created July 28, 2019 17:01 — forked from anonymous/nodejs.md
nodejs
/* 

Read a ini file

[Section1]
Param1=value1
[Section2]
Param2=value2
@neshume
neshume / LICENSE
Created September 23, 2019 16:17 — forked from shinout/LICENSE
Topological sort in JavaScript
Copyright 2012 Shin Suzuki<[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@neshume
neshume / custom_game_engines_small_study.md
Created October 24, 2020 16:36 — forked from leetrout/custom_game_engines_small_study.md
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) becaus

@neshume
neshume / PointCloudDensity.py
Created March 15, 2021 22:40 — forked from 0xLeon/PointCloudDensity.py
Point Cloud Density Calculation
"""
Provides methods for calculating point cloud densities.
All methods can handle instances of PLYObject or list or ndarray instances of lists of vertices.
"""
import numpy as np
import scipy.spatial
def getRealDensityFromPlane(ply, planeParams):
"""