Skip to content

Instantly share code, notes, and snippets.

View RicardoCampos's full-sized avatar

Ricardo Campos RicardoCampos

  • Northampton, United Kingdom
View GitHub Profile
@ohanhi
ohanhi / frp.md
Last active May 6, 2024 05:17
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@marcelog
marcelog / logstashUDP.js
Last active April 12, 2018 20:19
quick UDP Logstash logging from nodejs
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
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing
@mrunderhill89
mrunderhill89 / BehaviorTree.lua
Created April 18, 2014 17:13
Behavior Tree implementation in Lua.
--[[
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"