Skip to content

Instantly share code, notes, and snippets.

// aqua (0,255,255)
string LOE_COLOUR_AQUA = GetLocalString(GetLocalObject(GetModule(),"colours"),"aqua");
// black (0,0,0)
string LOE_COLOUR_BLACK = GetLocalString(GetLocalObject(GetModule(),"colours"),"black");
// blue (0,0,255)
string LOE_COLOUR_BLUE = GetLocalString(GetLocalObject(GetModule(),"colours"),"blue");
// brown (165,42,42)
# Rewritten by CleanModels 3 Version 3.5.2d Sat Feb 02 14:18:32 2019
#MAXMODEL ASCII
filedependency Unknown
newmodel tbm03_y98_01
classification CHARACTER
setsupermodel tbm03_y98_01 NULL
setanimationscale 1
#MAXGEOM ASCII
beginmodelgeom tbm03_y98_01
node dummy tbm03_y98_01
# Rewritten by CleanModels 3 Version 3.5.2d Sat Feb 02 14:16:32 2019
#MAXMODEL ASCII
filedependency Unknown
newmodel tbm01_w02_01
classification TILE
setsupermodel tbm01_w02_01 NULL
setanimationscale 1
#MAXGEOM ASCII
beginmodelgeom tbm01_w02_01
node dummy tbm01_w02_01
//
// @(#) dhsk_h
//
/*
[00.01] (2008-10-08)
LIFO StacK.
[01.00] (2008-11-25)
Release.
#include "nwnx_util"
void loe_InitColours()
{
object oColourNames = GetObjectByTag("LAY_COLOUR_WP");
SetLocalObject(GetModule(), "colours", oColourNames);
// aliceblue (240,248,255)
string LOE_COLOUR_INIT_ALICEBLUE = GetRGB(240,248,255);
// antiquewhite (250,235,215)
void SyncPins(object oPC, int iFeedback=0)
{
int iPins = GetLocalInt(oPC, "NW_TOTAL_MAP_PINS");
if (iPins == 0)
return;
int iIter = 1;
int iCount = 1;
string sPCID = IntToString(GetPlayerID(oPC));
string sSQL = "DELETE FROM player_maps WHERE player_id = "+sPCID;
SQLExecDirect(sSQL);
#include "Events/MapEvents.hpp"
#include "API/CNWSPlayer.hpp"
#include "API/CNWSMessage.hpp"
#include "API/Functions.hpp"
#include "API/Constants.hpp"
#include "Events.hpp"
#include "Utils.hpp"
#include <cstring>
namespace Events {
diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml
index fc14cbd5..149dc6f4 100644
--- a/src/main/resources/logback.xml
+++ b/src/main/resources/logback.xml
@@ -6,7 +6,7 @@
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
- <onMismatch>DENY</onMismatch>
+ <onMismatch>ACCEPT</onMismatch>
@plenarius
plenarius / cointrackinginfo.py
Created January 7, 2018 19:55
homeassistant component for cointracking.info API
"""
Balance of your account at cointracking.info
"""
from datetime import timedelta
import requests
import voluptuous as vol
from hashlib import sha512
import hmac
from urllib.parse import urlencode
import time
@plenarius
plenarius / isConfirmed.js
Last active January 5, 2018 23:12
iota isConfirmed on tail hash
function isConfirmed(tailtx) {
iota.api.getBundle(tailtx, (err, bundle) => {
if (err) { return -1; }
const inputs = bundle
.filter(input => input.value < 0)
.map(input => input.address);
iota.api.isReattachable(inputs, (err, reattachable) => {
if (err) { return -1; }
if (typeof(reattachable) === 'object' && reattachable.some(x => !x)) {
reattachable = false;