Skip to content

Instantly share code, notes, and snippets.

The error is caused by an incorrect port being used during setup. Simply use Visual Studio Code, open the folder C:\Program Files\NVIDIA Corporation\NVIDIA GeForce Experience, and do a find and replace (Ctrl+Shift+H), changing LOCALHOST_PORT",3e3 to LOCALHOST_PORT",60487. You'll need to click "retry as admin" to properly save the files. After that it will work.

; The name of the installer
Name "YOURPROGRAM"
; To change from default installer icon:
;Icon "YOURPROGRAM.ico"
; The setup filename
OutFile "YOURPROGRAM_Setup.exe"
; The default installation directory
@CoolOppo
CoolOppo / time-to-frequency.ipynb
Created October 19, 2019 07:11
How to extract frequencies with numpy using the real discrete fourier transform
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CoolOppo
CoolOppo / UE4-Cheatsheet.md
Created April 5, 2019 21:04
Markdown version of jbtronics' UE4 cheatsheet
{
"createdBy": "Redirector v3.2.1",
"createdAt": "2019-03-26T16:13:16.006Z",
"redirects": [
{
"description": "Redirect to latest docs",
"exampleUrl": "https://docs.rs/amethyst_gltf/0.5.1/amethyst_gltf/struct.GltfPrefab.html",
"exampleResult": "https://docs.rs/amethyst_gltf/*/amethyst_gltf/struct.GltfPrefab.html",
"error": null,
"includePattern": "https://docs.rs/*/*/*",
@CoolOppo
CoolOppo / LICENSE
Created March 3, 2019 18:29
A C# Task pool I wrote that runs a maximum number of tasks concurrently equal to ProcessorCount. Usage: Task.Run() => TaskMan.Run()
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@CoolOppo
CoolOppo / clamp.rs
Created February 8, 2019 02:54
Rust clamp function for most types
trait Clamp<T> {
fn clamp(self, min: T, max: T) -> T;
}
impl<T> Clamp<T> for T
where
T: PartialOrd + Copy,
{
fn clamp(self, min: T, max: T) -> T {
if self > max {
@CoolOppo
CoolOppo / Cargo.toml
Last active January 2, 2024 10:27
How to compile to a DLL in rust while using it as a normal rust library
[package]
name = "test"
version = "0.1.0"
authors = ["YOU <YOU@users.noreply.github.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib"]
@CoolOppo
CoolOppo / LICENSE.txt
Last active December 29, 2018 01:34
Web development Makefile to compile SASS (SCSS) files to CSS, minify all CSS with csso, and minify all JS with terser.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@CoolOppo
CoolOppo / settings.json
Last active September 1, 2023 08:56
My VS Code settings
{
"C_Cpp.clang_format_style": "file",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.default.cppStandard": "c++17",
"bracket-pair-colorizer-2.highlightActiveScope": true,
"bracket-pair-colorizer-2.showBracketsInGutter": true,
"bracket-pair-colorizer-2.showHorizontalScopeLine": false,
"breadcrumbs.enabled": true,
"editor.dragAndDrop": false,
"editor.find.autoFindInSelection": true,