by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
var util = require('util'); | |
var dgram = require('dgram'); | |
function logstashUDP(host, port, type, message, fields, callback) { | |
var client = dgram.createSocket('udp4'); | |
var logObject = { | |
'@timestamp': (new Date).toISOString(), | |
type: type, | |
message: message, | |
fields: fields |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
--[[ | |
This behavior tree code was taken from our Zelda AI project for CMPS 148 at UCSC. | |
It is for the most part unmodified, and comments are available for each function. | |
Author: Kevin Cameron (mrunderhill89) | |
]]-- | |
BT = {} | |
BT.__index = BT | |
BT.results = {success = "success" | |
,fail = "fail" |