Skip to content

Instantly share code, notes, and snippets.

@dpasca
dpasca / vscode_dark_theme_settings.json
Created January 21, 2024 16:59
Better contrast between panels in dark mode
{
"workbench.colorTheme": "Dobri Next -C06- Ayu",
"workbench.colorCustomizations": {
"panel.background": "#202020",
"panel.border": "#775530",
"panelTitle.activeBorder": "#FFaa00",
"panelTitle.activeForeground": "#F8F8F2",
"panelTitle.inactiveForeground": "#707070",
@dpasca
dpasca / remove-likes.md
Last active June 14, 2022 08:29 — forked from aelk00/remove-likes.md
Remove all your facebook likes
displacement disp_textured(
float Km = 1.0,
min_u = 0.0,
max_u = 1.0,
min_v = 0.0,
max_v = 1.0;
string mapname = "")
{
float magnitude,
level;
;==========================================================
;= C:\Users\Davide\dev\repos\RibTools\_distrib/TestScenes/KillerooNURBS/./Shaders/disp_textured.autogen.rrasm
;= Source file C:\Users\Davide\dev\repos\RibTools\_distrib/TestScenes/KillerooNURBS/./Shaders/disp_textured.sl
;= Creation date 2020/05/19 - 19:37:45
;= File automatically generated by RSLCompilerCmd 0.4a
;=========================================================
.data
P global varying point
// RTPS *OK*
void gteRTPS(void) // RTPS (ROT TRANS PERSP SINGLE) 180001
{
long SSX, SSY, SSZ;
long SX, SY;
float xf, yf, zf, P;
float hoz;
long halfH;
GTEPROFILE[34]++;
/*=======================================================================
VF01 - VF04 : perspective + transformation matrix
VF05 - VF08 : light color matrix
VF09 - VF12 : X light vector matrix(3 lighting vector + 1 ambient)
VF13 : temp light / gif tag
VF14 : temp light
VF15 : temp vert for clipping
VF16 : * unused
VF17 : * unused
VF18 : * unused
//==================================================================
/// SU_Kalman1D.h
///
/// Created by Davide Pasca - 2018/06/01
/// See the file "license.txt" that comes with this project for
/// copyright info.
//==================================================================
#ifndef SU_KALMAN1D_H
#define SU_KALMAN1D_H
struct TradeSignalTaskParams
{
bool enable = false;
bool automatic = true;
bool use_image = false;
DStr style {"short"};
DStr dirname ;
DStr header ;
DStr footer ;
@dpasca
dpasca / AUT_DumpDetect.h
Last active August 29, 2019 12:12
Detects a strong price drop in a BTC/USD market.
//==================================================================
/// AUT_DumpDetect.h
///
/// Created by Davide Pasca - 2019/08/25
/// See the file "license.txt" that comes with this project for
/// copyright info.
//==================================================================
#ifndef AUT_DUMPDETECT_H
#define AUT_DUMPDETECT_H
// "const auto" is just too common not to have an alias
#define c_auto const auto
class Type; // forward declaration if possible
//==================================================================
class ClassName
{
size_t mMember = 0; // 'm' prefix for member variable
U8 *mpPointer {}; // 'mp' prefix for member pointer