Skip to content

Instantly share code, notes, and snippets.

Avatar
💽

Andrew King andrew-r-king

💽
View GitHub Profile
View gist:6539e5704869f1a4b005af020c357068
bool onComment(const char* text, const RPG::ParsedCommentData* parsedData, RPG::EventScriptLine* nextScriptLine,
RPG::EventScriptData* scriptData, int eventId, int pageId, int lineId, int* nextLineId)
{
std::string cmd = parsedData->command;
if (cmd == "test_dbmonsters")
{
int id = parsedData->parameters[0].number;
RPG::DBMonster* monster = RPG::dbMonsters[id];
printf("DBMonster:\n");
View build_sfml_linux.sh
#!/bin/bash
ROOT=$HOME/dev/SFML
SFML_MASTER=$ROOT/sfml-master
SFML_BUILD=$SFML_MASTER/bin
VERSION=$1
if [[ $VERSION == '' ]]; then
VERSION="2.5.1"
View build_sfml.sh
#!/bin/bash
CMAKE_DIR='/c/Program Files/CMake/bin'
GCC_DIR=/c/msys64/mingw64/bin
DOXY_DIR='/c/Program Files/doxygen/bin'
PATH=$PATH:$GCC_DIR:$CMAKE_DIR:$DOXY_DIR
ROOT=/c/SFML
SFML_MASTER=$ROOT/sfml-master
SFML_BUILD=$SFML_MASTER/bin
View .clang-format
# Clang version 9.0.0
Language: Cpp
AccessModifierOffset: -4
AllowShortBlocksOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignOperands: false
AlignTrailingComments: true
AlignAfterOpenBracket: DontAlign
View clear_icon_cache_win10.sh
#!/bin/bash
cd ~/AppData/Local
rm -rf IconCache.db
cd Microsoft/Windows/Explorer
rm -rf iconcache* thumbcache*
taskkill //f //im explorer.exe
start explorer.exe
@andrew-r-king
andrew-r-king / mixer.css
Last active Nov 3, 2018
Mixer: Firefox 62+ fixes (11/3/2018)
View mixer.css
@-moz-document domain("mixer.com") {
.channel-page,
.router-container,
b-game-list > bui-card > div,
b-country-list > bui-card > b-metrics-country-list,
b-channel-chat-section
{
overflow: hidden !important;
}
.router-container