Skip to content

Instantly share code, notes, and snippets.

View RazerMoon's full-sized avatar
🐢
Slowly getting there...

Rasync RazerMoon

🐢
Slowly getting there...
  • Ireland
View GitHub Profile
@RazerMoon
RazerMoon / log.js
Created March 26, 2021 19:44
Log all BDD plugins
// Go to "Plugins" page in settings, then run:
document.querySelectorAll(".bda-header").forEach((item) => {console.log(item.textContent)})
@RazerMoon
RazerMoon / deepDiffMapper.js
Created May 23, 2021 17:29
Difference between two objects
// ? Taken from https://stackoverflow.com/questions/8572826/generic-deep-diff-between-two-objects but changed to only return changes.
// ! DO NOT USE IN PRODUCTION, UNTESTED AND LIKELY UNSTABLE
const deepDiffMapper = (function () {
return {
VALUE_CREATED: "created",
VALUE_UPDATED: "updated",
VALUE_DELETED: "deleted",
VALUE_UNCHANGED: "unchanged",
map: function (obj1, obj2) {
if (this.isFunction(obj1) || this.isFunction(obj2)) {
@RazerMoon
RazerMoon / controller.c
Created June 26, 2021 20:57
FSX custom throttle
#include "Joystick.h"
// https://github.com/MHeironimus/ArduinoJoystickLibrary
Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,
JOYSTICK_TYPE_GAMEPAD, 0, 0, // first no. is how many button there are
false , false, false, false, false, false,
true, true, false, false, false);
@RazerMoon
RazerMoon / README.md
Last active July 26, 2021 20:21
GIMP drop shadow windows

Inspired by this.

Tutorial

  • Take script from below and put it in C:\Users\<your name>\AppData\Roaming\GIMP\<version you're using>\scripts.
  • Open cmd and cd to where your image is.
  • Run this command:
    • "C:\Users\<your name>\AppData\Local\Programs\GIMP 2\bin\gimp-console-<version>.exe" -b "(report-drop-shadow \"<name of infile>\" \"<name of outfile>\" 0 0 30 60 TRUE)" -b "(gimp-quit 0)"

Adjust settings to your liking.

@RazerMoon
RazerMoon / cloudSettings
Last active September 24, 2021 09:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-03-02T20:34:19.675Z","extensionVersion":"v3.4.3"}