This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.class | |
# Mobile Tools for Java (J2ME) | |
.mtj.tmp/ | |
# Package Files # | |
*.jar | |
*.war | |
*.ear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RouteExtractor | |
require 'action_dispatch/routing/inspector' | |
attr_reader :all | |
def initialize | |
all_routes = Rails.application.routes.routes | |
inspector = ActionDispatch::Routing::RoutesInspector.new(all_routes) | |
@all = inspector.format(ArrayFormatter.new) | |
end |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mar 13, 2015 9:30:48 AM org.apache.catalina.startup.VersionLoggerListener log | |
INFO: Server version: Apache Tomcat/8.0.14 | |
Mar 13, 2015 9:30:48 AM org.apache.catalina.startup.VersionLoggerListener log | |
INFO: Server built: Sep 24 2014 09:01:51 | |
Mar 13, 2015 9:30:48 AM org.apache.catalina.startup.VersionLoggerListener log | |
INFO: Server number: 8.0.14.0 | |
Mar 13, 2015 9:30:48 AM org.apache.catalina.startup.VersionLoggerListener log | |
INFO: OS Name: Linux | |
Mar 13, 2015 9:30:48 AM org.apache.catalina.startup.VersionLoggerListener log | |
INFO: OS Version: 3.13.0-46-generic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.flexait.sorricred.application.interceptor; | |
import static br.com.caelum.vraptor.view.Results.http; | |
import javax.inject.Inject; | |
import br.com.caelum.vraptor.InterceptionException; | |
import br.com.caelum.vraptor.Intercepts; | |
import br.com.caelum.vraptor.Result; | |
import br.com.caelum.vraptor.core.InterceptorStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER FUNCTION [dbo].[return_tabela_sap] | |
( | |
@DATA DATE, | |
@AERONAVE VARCHAR(6) | |
) | |
RETURNS @RETORNO TABLE ( | |
ITEM INTEGER, | |
ROTA VARCHAR(6), | |
AIRCRAFT VARCHAR(6), | |
EQUIPAMENTO VARCHAR(50), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find ./ -type f -name '*.java' -exec sed -i 's/br\.com\.caelum\.vraptor\.Resource/br.com.caelum.vraptor.Controller/g' {} + | |
git commit -am 'Replace Resource import to Controller import' | |
find ./ -type f -name '*.java' -exec sed -i 's/@Resource/@Controller/g' {} + | |
git commit -am 'Replace @Resource to @Controller' | |
find ./ -type f -name '*.java' -exec sed -i '/import br.com.caelum.vraptor.plugin.hibernate4.NonTransactional;/ d' {} + | |
git commit -am 'Remove NonTransaction import' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Type; | |
import javax.enterprise.context.Dependent; | |
import javax.inject.Inject; | |
import org.hibernate.proxy.HibernateProxy; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonSerializationContext; | |
import com.google.gson.JsonSerializer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DbSchemaDiffTest { | |
@Test | |
public void load() { | |
HibernateUtil db = new HibernateUtil(); | |
Session session = db.getSession(); | |
session.doWork(new Work() { | |
@Override | |
public void execute(Connection connection) throws SQLException { | |
Configuration configuration = new Configuration(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15:59:36,145 DEBUG [DefaultControllerTranslator] trying to access /my/redirect | |
15:59:36,146 DEBUG [DefaultControllerTranslator] found controller [DefaultControllerMethod: public void test.MyController.redirect()] | |
15:59:36,146 DEBUG [DefaultResult ] including attribute controller: {ControllerClass test.MyController} | |
15:59:36,146 DEBUG [DefaultResult ] including attribute action: redirect | |
15:59:36,147 DEBUG [CDIBasedContainer ] asking cdi to get instance for class test.MyController | |
15:59:36,147 DEBUG [CDIBasedContainer ] beans for class test.MyController is [Managed Bean [class test.MyController] with qualifiers [@Any @Default]] | |
15:59:36,148 DEBUG [CDIBasedContainer ] asking cdi to get instance for class br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor | |
15:59:36,148 DEBUG [CDIBasedContainer ] beans for class br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor is [Managed Bean [class br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor] with qualifiers [@Any @De |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
en: | |
pagseguro: | |
errors: | |
'bad_request': 'Bad request' | |
'5003': 'bank network error' | |
'10000': 'invalid creditcard brand' | |
'10001': "creditcard number with invalid length" | |
'10002': "invalid date format" | |
'10003': "invalid security field" | |
'10004': "cvv is mandatory" |