Skip to content

Instantly share code, notes, and snippets.

View LeoFalco's full-sized avatar
🎯
Focusing

Leonardo Falco LeoFalco

🎯
Focusing
View GitHub Profile
@LeoFalco
LeoFalco / ResponseTimeLogger.java
Created January 9, 2020 14:10 — forked from erard22/ResponseTimeLogger.java
An interceptor logging the response time and additional information of a REST call to a Resteasy resource
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.ext.Provider;
import org.jboss.resteasy.annotations.interception.ServerInterceptor;
import org.jboss.resteasy.core.ResourceMethod;
import org.jboss.resteasy.core.ServerResponse;
import org.jboss.resteasy.spi.Failure;
import org.jboss.resteasy.spi.HttpRequest;
@LeoFalco
LeoFalco / app.js
Created March 9, 2020 14:13 — forked from gupta-pratik/app.js
AngularJs Authorization and permissions on routes and views.
'use strict';
// Declare app level module which depends on views, and components
var app = angular.module('eopd', [
'ngRoute',
'app.directives'
'app.services'
])
.config([
'$locationProvider', '$routeProvider', '$httpProvider', 'ScrollBarsProvider', function ($locationProvider, $routeProvider, $httpProvider, ScrollBarsProvider) {
@LeoFalco
LeoFalco / .zshrc
Last active May 4, 2020 15:52 — forked from diego3g/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="~/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"