Skip to content

Instantly share code, notes, and snippets.

@Holt59
Holt59 / .log
Last active April 19, 2023 09:04
!SESSION 2023-04-19 10:10:37.901 -----------------------------------------------
eclipse.buildId=unknown
java.version=17.0.6
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -data c:\Users\XXX\AppData\Roaming\Code\User\workspaceStorage\b3fd66ab6fb45615dcd26987ad859ee8\redhat.java\jdt_ws
!ENTRY org.eclipse.jdt.ls.core 1 0 2023-04-19 10:10:39.723
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started
#include <vector>
#include <iostream>
#include <pybind11/pybind11.h>
#include <pybind11/embed.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
struct FrameInfo
{
@Holt59
Holt59 / demo.cpp
Created May 16, 2022 13:23
Unpacking C++ type in Python with Pybind11
#include <pybind11/pybind11.h>
namespace py = pybind11;
struct Size {
double width, height;
};
PYBIND11_MODULE(demo, m) {
py::class_<Size>(m, "Size")
#include <memory>
#include <iostream>
#include <vector>
#include <pybind11/pybind11.h>
#include <pybind11/embed.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
namespace py = pybind11;
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
@Holt59
Holt59 / ModuleConfig.xml
Created June 10, 2020 17:16
Simply Stronger Dragons - ModuleConfig.xml
<?xml version="1.0" encoding="utf-8"?>
<config xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://qconsulting.ca/fo3/ModConfig5.0.xsd">
<moduleName>Simply Stronger Dragons</moduleName>
<installSteps order="Explicit">
<installStep name="Install">
<optionalFileGroups order="Explicit">
<group name="Health multiplier for generic enemy dragons" type="SelectExactlyOne">
<plugins order="Explicit">
<plugin name="1">
<description/>
@Holt59
Holt59 / README.md
Last active May 21, 2020 13:23
MO2 Plugin Python README

Mod Organizer 2 - Plugin Python Proxy

This repository contains the implementation of the proxy plugin for python language plugins in Mod Organizer 2.

This README is intended for MO2 developers, not plugin creators. If you are looking for documentation on how to create a python plugin, please refer to the MO2 wiki.

@Holt59
Holt59 / install_on_download.py
Last active May 13, 2020 12:30
MO2 python test plugin - Install after download
# -*- encoding: utf-8 -*-
from PyQt5.QtCore import QCoreApplication
import mobase
class InstallAfterDownload(mobase.IPlugin):
def __init__(self):
super().__init__()
@Holt59
Holt59 / _mobase.pyi
Last active May 10, 2020 16:03
Stubs file for ModOrganizer2 Python Interface - For 2.3.0a8 version.
from enum import Enum
from typing import Dict, Iterable, Iterator, List, Tuple, Union, Any, Optional, Callable, overload
import PyQt5.QtCore
import PyQt5.QtGui
import PyQt5.QtWidgets
class InterfaceNotImplemented: pass
class GuessQuality(Enum):
INVALID = 0
@Holt59
Holt59 / Player.log
Created March 28, 2019 08:20
Player.log after crash (Unity Obstacle Tower environment)
Desktop is 1280 x 1024 @ 0 Hz
Invalid initial resolution 84 x 84 - forcing to 100 x 100
Initialize engine version: 2018.2.17f1 (88933597c842)
GfxDevice: creating device client; threaded=1
Renderer: Tesla K80/PCIe/SSE2
Vendor: NVIDIA Corporation
Version: 4.5.0 NVIDIA 410.72
GLES: 0
GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buf
fer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_dept