Skip to content

Instantly share code, notes, and snippets.

View vcuca's full-sized avatar
🏠
Working from home

Vedran Cuca vcuca

🏠
Working from home
  • Novi Sad, Serbia
View GitHub Profile
@ggtools
ggtools / logstash.conf
Last active October 12, 2017 21:05
Logstash configuration for Docker + Spring Boot applications
input {
gelf {
type => docker
port => 12201
}
}
filter {
multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
@mattdesl
mattdesl / modules.md
Last active October 12, 2024 16:17
my favourite modules.
@staltz
staltz / introrx.md
Last active October 14, 2025 19:39
The introduction to Reactive Programming you've been missing
@turtlemonvh
turtlemonvh / main.js
Last active January 3, 2021 16:37
Angular Messaging
var MyApp = angular.module('MyApp');
MyApp.factory('msgBus', ['$rootScope', function($rootScope) {
var msgBus = {};
msgBus.emitMsg = function(msg, data) {
data = data || {};
$rootScope.$emit(msg, data);
};
msgBus.onMsg = function(msg, func, scope) {
var unbind = $rootScope.$on(msg, func);
if (scope) {