This file contains hidden or 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 org.hibernate.jpa.HibernatePersistenceProvider; | |
import org.springframework.context.annotation.Configuration; | |
import javax.annotation.PostConstruct; | |
import javax.persistence.spi.PersistenceProvider; | |
import javax.persistence.spi.PersistenceProviderResolver; | |
import javax.persistence.spi.PersistenceProviderResolverHolder; | |
import java.util.Collections; | |
import java.util.List; |
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>io.github.rodrik</groupId> | |
<artifactId>spring-boot-was</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<properties> | |
<java.version>1.6</java.version> | |
</properties> |
This file contains hidden or 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
/** | |
* SPECIFIC TO XSSF | |
* This remove all the data validation from a sheet | |
* @param: pSheet the sheet where it's needed to remove the data validation | |
*/ | |
public static void removeDataValidation(XSSFSheet pSheet) | |
{ | |
//Disable the data validation for the sheet | |
pSheet.getCTWorksheet().unsetDataValidations(); | |
//Enable the data validation for the sheet with no data validation |
This file contains hidden or 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
Private Sub Worksheet_Change(ByVal Target As Range) | |
'MsgBox Target.Count | |
'MsgBox Target.Value | |
'MsgBox Len(Target.Value) | |
'MsgBox InRange(Target, Range("A2:A1000")) | |
If InRange(Target, Range("A2:A1000")) And Target.Count = 1 Then | |
Call colorValidate(showMatch(Target.Value), Target) | |
Else | |
'MsgBox "NO SE EJECUTA" | |
End If |
This file contains hidden or 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 com.example.yourapp; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.os.Build; | |
import android.security.KeyPairGeneratorSpec; | |
import android.security.keystore.KeyGenParameterSpec; | |
import android.security.keystore.KeyProperties; | |
import android.support.annotation.RequiresApi; |
This file contains hidden or 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
<img id="preview" src="http://www.gravatar.com/avatar/0e39d18b89822d1d9871e0d1bc839d06?s=128&d=identicon&r=PG"> | |
<canvas id="myCanvas"/> |
This file contains hidden or 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 static void waitForPageLoad(WebDriver drv) { | |
sleep(50); // Make sure new page init has started... | |
try { | |
(new WebDriverWait(drv, 5)) | |
.until(new ExpectedCondition<Boolean>() { | |
public Boolean apply(WebDriver d) { | |
return ((JavascriptExecutor)d).executeScript("return document.readyState").equals("complete"); | |
} | |
}); | |
} catch (TimeoutException ex) { |
This file contains hidden or 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
Name | Version | Size (uncompressed) | Size (minified) | Size (gzipped) | URL | |
---|---|---|---|---|---|---|
Bootstrap | v3.3.7 | 143 KB | 117 KB | 20 KB | http://getbootstrap.com/css/ | |
Bootstrap | v4.0.0 | 187 KB | 147 KB | 20 KB | https://v4-alpha.getbootstrap.com/ | |
Materialize | v3.0 | 114 KB | 90 KB | 18 KB | http://materializecss.com/ | |
Material Design Lite | v1.3.0 | 350 KB | 137 KB | 21 KB | https://getmdl.io/ | |
mini.css | v2.1 | 47 KB | 36 KB | 7 KB | https://chalarangelo.github.io/mini.css/ | |
Semantic UI | v2.2.6 | 730 KB | 550 KB | 95 KB | https://semantic-ui.com/ | |
Foundation | v3.0 | 90 KB | 64 KB | 12 KB | http://foundation.zurb.com/ | |
Pure CSS | v0.6.2 | 80 KB | 17 KB | 3.8 KB | https://purecss.io/ | |
Picnic CSS | v6.3.2 | 55 KB | 38 KB | 7 KB | https://picnicss.com |
This file contains hidden or 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
For primefaces 6.2 also this worked fine for me | |
<dependency> | |
<groupId>org.webjars</groupId> | |
<artifactId>font-awesome</artifactId> | |
<version>5.5.0</version> | |
</dependency> | |
and in xhtml file: | |
<h:outputScript library="webjars" name="font-awesome/5.5.0/js/all.js"/> |
This file contains hidden or 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
*converts | |
---date | |
<h:outputText value="#{encuesta.vigencia}" > | |
<f:convertDateTime type="date" pattern="dd-MM-yyyy"/>ç | |
</h:outputText> |
NewerOlder