Skip to content

Instantly share code, notes, and snippets.

View tomatolog's full-sized avatar

Stas tomatolog

View GitHub Profile
@SharkWipf
SharkWipf / Nerfstudio-WSL2.md
Last active November 3, 2024 13:48
Nerfstudio (with COLMAP + HLOC + FFMPEG) on Windows via WSL2

Nerfstudio (with COLMAP* + HLOC* + FFMPEG*) on Windows via WSL2

* Via Pixi

Old instructions stopped working on Gsplat 1.0.0+. Updated and simplified on 2024-07-09. Now no longer deviates from official installation instructions.

2024-11-03: Microsoft updated the default WSL2 distro to Ubuntu 24.04. One extra command is needed to make it work now.

For native Linux start-to-finish installation instructions, see this document instead.

For context: WSL2 is a Windows built-in way to run Linux applications on Windows, in a tightly integrated virtual machine.
This, in theory, lets you run Linux applications without the complexity and trouble of actually having to run Linux.
In practice, there are still a few caveats, most notably the complex custom CUDA implementation Windows uses to make this work.

@herohiralal
herohiralal / Archetype.cs
Created February 15, 2022 04:03
HiraBots sample 1
using UnityEngine;
using UnityEngine.AI;
namespace AIEngineTest
{
public class Archetype : MonoBehaviour,
IHiraBotArchetype<NavMeshAgent>,
IHiraBotArchetype<Animator>,
IHiraBotArchetype<ConsolidatedSensor>,
IHiraBotArchetype<HiraLGOAPRealtimeBot>,
@tomatolog
tomatolog / split-orto-v2.kbd.json
Last active October 22, 2020 15:08
split orto v2
[
{
"backcolor": "#000000",
"name": "split orto v2",
"author": "Stan",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX3A-L1xx",
"pcb": false,
"plate": true
@redblobgames
redblobgames / vue-canvas.js
Last active April 11, 2023 07:31
Vue component for canvas with automatic dependency tracking
/** Canvas component
A generic canvas component that calls a draw function to draw the
contents, and automatically calls it again when anything the draw
function depends on changes. Blog entry:
http://simblob.blogspot.com/2018/03/using-vue-with-canvas.html
Example:
<a-canvas width="500" height="200"
@ErikAugust
ErikAugust / spectre.c
Last active August 2, 2024 01:59
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@vlastv
vlastv / Dockerfile
Created November 28, 2017 11:06
docker manticoresoftware/manticore:alpine
FROM alpine
RUN set -ex; \
\
apk add --no-cache --virtual .build-deps \
coreutils \
git \
cmake \
make \
g++ \
@gorlak
gorlak / tools-engineer-checklist.md
Last active September 2, 2024 10:34
Tools Engineer Checklist

This list is provided as a guide for tools engineers of all skill levels looking for jobs in the game industry. It's meant as a guide to topics that should be pursued broadly in order to be well spoken in an interview. I doubt any hiring manager requires deep knowedge across every topic, but an ideal candidate would be somewhat knowledgable (aware of its existence if asked directly) with all topics here.

Each list of bullets increases in difficulty, so later bullets are more applicable to senior (or even director) level candidates.

Good luck.

@gorlak

Math

@DeanCording
DeanCording / Template_ESP8266.ino
Last active April 29, 2023 03:23
ESP8266 Arduino project template with optional OTA firmware update
/**
* ESP8266 project template with optional:
* - WiFi config portal - auto or manual trigger
* - OTA update - Arduino or web server
* - Deep sleep
* - Process timeout watchdog
*
* Copyright (c) 2016 Dean Cording <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
void cMirrorControllerImpl::Sample(scenegraph::iSkeleton::Ptr skeleton, cOrientation* blend_buffer, int bone_group, float multiplier, float& current_weight)
{
bone_group &= m_BoneGroup;
if (m_Controller)
{
// Sample input
m_Controller->Sample(skeleton, blend_buffer, bone_group, multiplier, current_weight);
// TODO: Use bone groups on the mirror ?
@puppybits
puppybits / Docerfile.cacheNPM
Created September 25, 2015 18:10
Super fast JS Docker images by caching NPM modules that haven't changed
FROM library/node
MAINTAINER [email protected]
RUN mkdir /.npm
RUN mkdir /app
# cache (and skip if no changes) to the node_modules
WORKDIR /.npm
ADD package.json /.npm/package.json
# Set the version in the cache folder to 0.