Skip to content

Instantly share code, notes, and snippets.

Nick Arnoeyts armornick

  • Belgium
Block or report user

Report or block armornick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gulpfile-generator.js
// ----------------------------------------------------------
// module imports
// const { existsSync, mkdirSync, readFileSync, writeFileSync } = require('fs');
// const { execSync } = require('child_process');
// ----------------------------------------------------------
// parse commandline arguments
const argv = require('yargs')
@armornick
armornick / NIA_ShopStock.js
Last active Nov 12, 2018
Add-on for Hime's Shop Manager plugin for RPG Maker MV which adds stock limitations to shops
View NIA_ShopStock.js
/*:
@plugindesc Shop Stock
@author armornick
@param default-stock
@text Default Stock Size
@type number
@desc The default size of stock for items without note-tag.
@default 99
@armornick
armornick / NIA_StateCancelElement.js
Created Aug 17, 2018
Make States Canceled by Elements (RPG Maker MV)
View NIA_StateCancelElement.js
/*:
@plugindesc States Cancelled by Elements
@author armornick
@help
This plugin adds states which are canceled when the inflicted person is hit with
an attack with a certain element.
=== Usage ===
@armornick
armornick / NIA_EquipSkillCommands.js
Created Aug 17, 2018
RPG Maker MV plugin to show the skills added by a piece of equipment
View NIA_EquipSkillCommands.js
/*:
@plugindesc Show equipment skills on equip menu
@author armornick
@param Equipment Skills Text
@desc The label to show above the equipment skills list.
@default Equipment Skills
@help
@armornick
armornick / NIA_SimpleCrafting.js
Last active Oct 9, 2018
Simple crafting system for RPG Maker MV
View NIA_SimpleCrafting.js
/*:
@plugindesc Simple crafting system.
@author armornick
----------------------------------------------------
@help
Adds a simple crafting system with a simple crafting menu.
@armornick
armornick / generator.js
Last active Mar 30, 2018
Node-based Project Generator (templates not included)
View generator.js
var Generator = (function () {
var Mustache = require("./lib/mustache.min.js"),
fs = require("fs")
function Generator() {
this.templateDir = null
this.config = null
}
@armornick
armornick / embed.cpp
Created Mar 6, 2018
Embed text file as C string
View embed.cpp
#include <cstdio>
#include <cctype>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <stdexcept>
#define FILE_LIST_FN "file_list.txt"
@armornick
armornick / xml.cpp
Last active Nov 23, 2016 — forked from anonymous/xml.cpp
Duktape bindings for TinyXML 2
View xml.cpp
#include <duktape.h>
#include <tinyxml2.h>
using namespace tinyxml2;
// -----------------------------------------------------------------------------
// XmlNode Object structure & utility functions
// -----------------------------------------------------------------------------
#define DUKWIN_XMLNODE_PROTOTYPE "$DukwinXmlNodePrototype"
@armornick
armornick / list-cpls.cpp
Created Apr 12, 2016
List control panel applets and allow the user to open them
View list-cpls.cpp
/*
List and load Control Panel applets
Based on this article:
https://blogs.msdn.microsoft.com/oldnewthing/archive/2003/12/26/45979.aspx
And this section of MSDN:
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144185(v=vs.85).aspx
KNOWN BUGS:
@armornick
armornick / RequestFile.cpp
Created Mar 3, 2016
How to request a file via the Windows API using both the old and new method
View RequestFile.cpp
#include <windows.h>
#ifdef UNICODE
/*
IT FUCKING WORKS WITH G++ FUCKING GODDAMIT!!!88!!!
g++ -municode -s -static -Os -o openfiledialog-gnu openfiledialog.cpp -lshell32 -luuid -lole32 -DUNICODE -D_UNICODE -D_WIN32_WINNT=_WIN32_WINNT_VISTA -DNTDDI_VERSION=NTDDI_VISTA
NOTE: forgive the expletives but it took several days to get this working and it turned out I forgot to define the version macros
You can’t perform that action at this time.