Skip to content

Instantly share code, notes, and snippets.

@w-flo
w-flo / sysinfo
Created January 10, 2013 16:58
My system info
Prozessor:
Hersteller: AuthenticAMD
Geschwindigkeit: 3200 MHz
4 logische Prozessoren
4 technische Prozessoren
HyperThreading: Nicht unterstützt
FCMOV: Unterstützt
SSE2: Unterstützt
SSE3: Unterstützt
SSSE3: Unterstützt
From 0018a24f75f0212683a8d1bf23db26bcab1460ea Mon Sep 17 00:00:00 2001
From: Florian Will <florian.will@gmail.com>
Date: Sun, 12 May 2013 16:16:51 +0200
Subject: [PATCH] Escape artist and album name in album widget.
---
src/widgets.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/widgets.js b/src/widgets.js
@w-flo
w-flo / banshee3d.diff
Last active December 26, 2017 23:22
Banshee3d diff to fix build without editor on Ubuntu 17.10 (gcc 7.2), against 42e3c31d356b
diff --git a/Source/BansheeUtility/Allocators/BsFreeAlloc.h b/Source/BansheeUtility/Allocators/BsFreeAlloc.h
index d9ec441dc..237c5d1e8 100644
--- a/Source/BansheeUtility/Allocators/BsFreeAlloc.h
+++ b/Source/BansheeUtility/Allocators/BsFreeAlloc.h
@@ -2,8 +2,6 @@
//**************** Copyright (c) 2017 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************//
#pragma once
-#include "Prerequisites/BsPrerequisitesUtil.h"
-
@w-flo
w-flo / test-ssbo-std430.cpp
Last active February 13, 2021 18:10
Test program for structured access to shader storage buffers
/*******
Compilation:
g++ test-ssbo-std430.cpp $(pkg-config --cflags --libs sdl2 glew) && MESA_DEBUG=true ./a.out
renderdoc 0.91 (e.g. git de7a74c7) can be configured to queue capture of frame 2 to inspect the results of this test program.
This is a simple test program to isolate one of the issues I encountered using my HD 7870 GPU and the Mesa radeonsi driver (amdgpu kernel module) while testing the Banshee 3D engine.
Mesa version is 17.2.4-0ubuntu1~17.10.1 (from Ubuntu artful-proposed archive).
@w-flo
w-flo / dirty_widget_invalidate_fix.diff
Created April 11, 2019 07:25
Dirty fix for OpenRCT2 failed assertion #5893 https://github.com/OpenRCT2/OpenRCT2/issues/5893 Assertion failed: (w->widgets[i].type != WWT_LAST)
diff --git a/src/openrct2/interface/Window.cpp b/src/openrct2/interface/Window.cpp
index b294806ba..148e94c36 100644
--- a/src/openrct2/interface/Window.cpp
+++ b/src/openrct2/interface/Window.cpp
@@ -1773,6 +1773,11 @@ void window_align_tabs(rct_window* w, rct_widgetindex start_tab_id, rct_widgetin
}
}
+int32_t window_get_current_tab(rct_window* w)
+{
subzone,zone_key,production_mode,installation_name,emissions,allocation,generation_mw,generation_mwh,heat_emissions,elec_emissions,emission_factor
DK,DK,coal,"DONG Energy Generation, Esbjergværket",1185226.0,20807.0,152.6367283,1337097.74,45232.60869565217,1139993.391304348,852.5879277189923
DK,DK,coal,Fynsværket,535895.0,56283.0,56.30178653,493203.65,122354.34782608695,413540.6521739131,838.4784909315108
DK,DK,gas,Silkeborg Varme A/S - Kraftvarmeværket,113311.0,15138.0,27.23771005,238602.34,32908.69565217391,80402.30434782608,336.9719858901052
DK,DK,oil,Kyndbyværket,15362.0,143.0,0.7198510274000001,12611.79,310.8695652173913,15051.130434782608,1193.4174637210583
RO,RO,coal,S Complexul Energetic Oltenia SA - SE Isalnita,1116183.0,-1.0,61.97225414664769,938837.0043000478,0.0,1116183.0,1188.8996651044586
RO,RO,coal,S Complexul Energetic Oltenia SA-SE Turceni,2400383.0,-1.0,77.90358063425887,2047306.0990683232,0.0,2400383.0,1172.4592629760411
RO,RO,coal,SC C.E. OLTENIA SA - SUC. ELECTROCENTRALE ROVINARI,3833007.