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.apache.commons.io.FileUtils | |
| import java.io.File | |
| import java.net.URL | |
| // download sequential photos from epics.io | |
| fun main(args: Array<String>) { | |
| val baseUrl = "https://images.epics.website/d1d3d313d131d3d13d974e905c985/IMG-IMAGE_CODE.jpg?token=d1d13d13d11d3d12121s32edasd23fwefwsdd&size=767&wm=2&wmlabel=Fotografias" | |
| val photoDestinationPath = "${System.getProperty("user.dir")}/photos" | |
| val imageCodeRange = 5777..6038 |
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
| version: '3.5' | |
| services: | |
| postgres: | |
| container_name: postgres_container | |
| image: postgres | |
| environment: | |
| POSTGRES_USER: ${POSTGRES_USER:-postgres} | |
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} | |
| POSTGRES_DB: ${POSTGRES_DB:-app_db} |
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
| function validadorCPF(query = ""){ | |
| var primeiroDigitoValidador; | |
| var segundoDigitoValidador; | |
| var auxSoma = 0; | |
| if( query === "00000000000" | |
| || query === "11111111111" | |
| || query === "22222222222" | |
| || query === "33333333333" |
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
| rm $HOME/.RubyMine2016.2/config/eval/RubyMine162.evaluation.key |
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
| const PORT = 8080 | |
| const http = require('http'); | |
| const finalhandler = require('finalhandler'); | |
| const serveStatic = require('serve-static'); | |
| const serve = serveStatic("./app/"); | |
| const server = http.createServer((req, res) => { | |
| const done = finalhandler(req, res); |
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
| # precisa configura o connection pool e o resource manualmento no eclipse | |
| # propriedades obrigatorias: DriverClass (org.postgresql.Driver), URL(jdbc:postgresql://localhost:5432/usuario), User, DatabaseName, ServerName, PortNumber, Password | |
| <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" | |
| version="2.1"> | |
| <persistence-unit name="jdbc/Usuario" transaction-type="JTA"> | |
| <jta-data-source>jdbc/Usuario</jta-data-source> | |
| <properties> | |
| <property name="javax.persistence.schema-generation.database.action" value="create" /> |
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 JasperPrint jasperPrint; | |
| public void init() throws JRException{ | |
| JRBeanCollectionDataSource data = new JRBeanCollectionDataSource(listOfUser); | |
| String reportPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(“report.jasper”); | |
| jasperPrint = JasperFillManager.fillReport(reportPath, new HashMap<>(), data); | |
| } | |
| public void PDF() throws JRException, IOException{ | |
| init(); |
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
| # | |
| # conf path: Applications/iReport/Contents/Resources/ireportpro/etc/ireportpro.conf | |
| # | |
| # ${HOME} will be replaced by user home directory according to platform | |
| default_userdir="${HOME}/.${APPNAME}/5.6.0" | |
| default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/5.6.0" | |
| # options used by the launcher by default, can be overridden by explicit | |
| # command line switches | |
| default_options="-J-Xms256m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level=1000 -J-XX:MaxPermSize=512m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dnetbeans.exception.report.min.level=99999 " |
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
| <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence | |
| http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" | |
| version="2.1"> | |
| <persistence-unit name="persistenceUnitName" transaction-type="RESOURCE_LOCAL"> | |
| <properties> | |
| <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> <!-- DB Driver --> |
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 dao; | |
| import java.util.List; | |
| import javax.persistence.Query; | |
| import org.hibernate.Session; | |
| import org.hibernate.SessionFactory; | |
| import org.hibernate.cfg.Configuration; |
NewerOlder