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
//Basic web page | |
<div class="card"> | |
<div class="card-content"> | |
<h4 class="grey-text"> | |
Example of input mask with dates | |
</h4> | |
<h:form> | |
<p:growl autoUpdate="true" /> | |
<p:inputMask mask="99-99-9999" value="#{mask.date}" converterMessage="Invalid Date!" converter="dateconverter" /> |
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
xmlns:pe="http://primefaces.org/ui/extensions" | |
<h:form id="remoteForm"> | |
<p:growl autoUpdate="true" /> | |
<pe:remoteCommand id="applyDataCommand" name="sayMyName" process="@this" actionListener="#{remote.sayMyName}"> | |
<pe:methodSignature parameters="java.lang.String" /> | |
<pe:methodParam name="name"/> | |
</pe:remoteCommand> | |
<p:inputText value="#{remote.name}" immediate="true" id="inputName"> |
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
((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%-_.]).{6,32}) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<module xmlns="urn:jboss:module:1.1" name="org.postgresql"> | |
<resources> | |
<resource-root path="postgresql-9.1-902.jdbc4.jar"/> | |
</resources> | |
<dependencies> | |
<module name="javax.api"/> | |
<module name="javax.transaction.api"/> | |
<module name="javax.servlet.api" optional="true"/> | |
</dependencies> |
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.security.MessageDigest; | |
import java.util.Arrays; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKey; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
public class TripleDESTest { |
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
private void taskOperation(){ | |
Task<Void> task = new Task<Void>() { | |
@Override protected Void call() throws Exception { | |
return null; | |
} | |
}; | |
task.setOnSucceeded((WorkerStateEvent event) -> { | |
//Do some callback action | |
}); | |
Thread th = new Thread(task); |
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
function Pieza(id, width){ | |
this.s = Snap(id); | |
this.colorHover = "#B9D1D6"; | |
this.colorBlur = "rgb(236, 240, 241)"; | |
//Methods | |
var hoverPath = function(path, colorHover, colorBlur){ | |
this.colorHover = colorHover; |
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.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
public class DatabaseConnection { | |
private static DatabaseConnection instance; | |
private Connection connection; | |
private String url = "jdbc:postgresql://localhost:5432/jdbc"; |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.demo.recentfilelist; | |
import java.util.ArrayList; | |
import java.util.List; |
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
sudo -H pip install awsebcli --upgrade --ignore-installed six |