Skip to content

Instantly share code, notes, and snippets.

View benorama's full-sized avatar

Benoit Hediard benorama

View GitHub Profile
@benorama
benorama / EventBusService.ts
Created April 22, 2017 10:40
Typescript version of Vertx EventBus Client for Angular
/**
* 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 {
@benorama
benorama / .travis.yml
Last active January 10, 2023 18:37
Grails AWS Elastic Beanstalk deployment script
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: "..."
@benorama
benorama / DynamoDBService.groovy
Last active September 6, 2016 15:48
DynamoDB Grails Service
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
@benorama
benorama / Code War at CFCamp
Created October 19, 2012 07:34
Code War at CFCamp - Groovy version (97 bytes) - http://aurelien.deleusiere.fr/post.cfm/code-war-at-cfcamp
"6-9,12,14-19".tokenize(',').collect{it.find('-')?[*evaluate(it.replace('-','..'))]:it}.flatten()