Skip to content

Instantly share code, notes, and snippets.

Benoit Hediard benorama

Block or report user

Report or block benorama

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@benorama
benorama / EventBusService.ts
Created Apr 22, 2017
Typescript version of Vertx EventBus Client for Angular
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 {
@benorama
benorama / .travis.yml
Last active Aug 24, 2017
Grails AWS Elastic Beanstalk deployment script
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: "..."
@benorama
benorama / DynamoDBService.groovy
Last active Sep 6, 2016
DynamoDB Grails Service
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()
You can’t perform that action at this time.