Instantly share code, notes, and snippets.

View EventBusService.ts
/**
* Based on Vertx EventBus Client (https://github.com/vert-x3/vertx-bus-bower)
* Requires SockJS Client
*/
import {EventEmitter, Injectable} from "@angular/core";
import * as SockJS from 'sockjs-client';
@Injectable()
export class EventBusService {
View .travis.yml
language: groovy
jdk: oraclejdk8
sudo: false # To use new Travis docker-based infrastructure
env:
global:
# $AWS_ACCESS_KEY_ID
- secure: "..."
# $AWS_SECRET_ACCESS_KEY
- secure: "..."
View DynamoDBService.groovy
package agorapulse.core.dynamo
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient
import com.amazonaws.services.dynamodbv2.datamodeling.*
import com.amazonaws.services.dynamodbv2.model.*
import grails.plugin.awssdk.AmazonWebService
import org.apache.log4j.Logger
import java.lang.reflect.Field
import java.lang.reflect.Method
View Code War at CFCamp
"6-9,12,14-19".tokenize(',').collect{it.find('-')?[*evaluate(it.replace('-','..'))]:it}.flatten()