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 int getMinimumSeats() { | |
String minSeats = SystemConfiguration.get().getParam(Group.ServiceRenfe, "minSeats"); | |
if (Strings.isNullOrEmpty(minSeats)) { | |
return DEFAULT_MINIMUM_SEATS_TO_FILTER; | |
} | |
return Ints.tryParse(minSeats); | |
} | |
public boolean isTariffApproved() { | |
//-- Empty availability => REJECT |
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 boolean isTariffApproved() { | |
String currentTariffAvailability = tarifa.getDisponibilidad(); | |
if (Strings.isNullOrEmpty(currentTariffAvailability)) { | |
return false; | |
} | |
if (HIGH_AVAILABILITY.equals(currentTariffAvailability)) { | |
return true; | |
} |
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
drop procedure if exists AddColumnUnlessExists; | |
delimiter '//' | |
create procedure AddColumnUnlessExists( | |
IN dbName tinytext, | |
IN tableName tinytext, | |
IN ddl text) | |
begin | |
IF NOT EXISTS (SELECT * FROM information_schema.COLUMNS | |
WHERE column_name=fieldName |
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
CREATE USER 'knowtec' IDENTIFIED BY 'RI9n5Tpv3gUCDC'; | |
FLUSH PRIVILEGES; | |
DROP USER 'knowtec'@'localhost'; | |
GRANT ALL ON GLOBAL_SI TO 'knowtec'@'%' IDENTIFIED BY 'RI9n5Tpv3gUCDC'; | |
Select * | |
from mysql.user | |
where user = 'knowtec'; |
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
-- ***************************************************************************** | |
-- PLATAFORMAIC-READER | |
-- Insercao de templates para formularios e feedbacks | |
-- ***************************************************************************** | |
DECLARE | |
type ClienteArray is varray(1) of NUMBER(10,0); | |
type TemplateArray is varray(8) of VARCHAR2(100); | |
clientes ClienteArray; |
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
exp system/prolha24@xe file=/backup/oracle_NOVOSIS_DSV.dmp owner=NOVOSIS_DSV | |
imp system/admin@home FROMUSER=NOVOSIS_DSV TOUSER=NOVOSIS_DSV file=E:\tmp\oracle.dmp full=no log=e:\tmp\imp_log.log |
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.io.IOException; | |
import org.apache.lucene.analysis.standard.StandardAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; | |
import org.apache.lucene.document.StringField; | |
import org.apache.lucene.document.TextField; | |
import org.apache.lucene.index.DirectoryReader; | |
import org.apache.lucene.index.IndexReader; | |
import org.apache.lucene.index.IndexWriter; |
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
/** | |
* Efetua operações relacionadas ao feed de notícias do SIS na rede social Facebook. | |
*/ | |
var feed = { | |
/** | |
* Inicializa os eventos relacionados ao Facebook. | |
*/ | |
init: function() { | |
page.loadAccessToken(); |
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
/** | |
* Gerencia os eventos para criação e atualização de tópicos e temas. | |
* @author Thania | |
*/ | |
var gerenciadorArvore = { | |
/** | |
* Instala os eventos necessários após o carregamento total da página. | |
*/ | |
init: function() { |
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
var lastTweet = { | |
init: function() { | |
lastTweet.show(); | |
}, | |
getAbsolutePath: function() { | |
return $("meta[name='path']").attr("content"); | |
}, | |
show: function() { | |
var params = { "nomeUsuarioTwitter" : "sebrae_sc_sis" }; | |
var url = lastTweet.getAbsolutePath() + "ajax/getLastTweet"; |
NewerOlder