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" standalone="yes"?> | |
<template encoding-version="1.3"> | |
<description></description> | |
<groupId>b36f9057-0175-1000-7ec1-63187bd2c0b0</groupId> | |
<name>ExecuteGraphQueryRecord Cypher</name> | |
<snippet> | |
<processGroups> | |
<id>db861c5f-cbf3-35c8-0000-000000000000</id> | |
<parentGroupId>70bbc5bf-8996-3d7b-0000-000000000000</parentGroupId> | |
<position> |
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 com.openhtmltopdf.pdfboxout.PdfRendererBuilder; | |
import org.apache.pdfbox.io.IOUtils; | |
import java.io.ByteArrayOutputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
public class App { | |
public static void main(String[] args) throws IOException { | |
ByteArrayOutputStream os = new ByteArrayOutputStream(); |
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" standalone="yes"?> | |
<template encoding-version="1.3"> | |
<description></description> | |
<groupId>195b481b-016e-1000-0780-6e08b40dd410</groupId> | |
<name>Simple Graph Example</name> | |
<snippet> | |
<connections> | |
<id>0cf7a453-ea69-31d6-0000-000000000000</id> | |
<parentGroupId>47d9e3df-22e3-377e-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> |
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 com.google.protobuf.InvalidProtocolBufferException; | |
import filters.generated.FilterProtos; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.hbase.Cell; | |
import org.apache.hadoop.hbase.CellBuilder; | |
import org.apache.hadoop.hbase.CellBuilderFactory; | |
import org.apache.hadoop.hbase.CellBuilderType; | |
import org.apache.hadoop.hbase.HBaseConfiguration; | |
import org.apache.hadoop.hbase.TableName; | |
import org.apache.hadoop.hbase.client.Connection; |
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 SSLContext buildSslContext(SSLContextService sslService) throws IOException, CertificateException, | |
NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException, KeyManagementException { | |
KeyManagerFactory kmf = null; | |
if (sslService.isKeyStoreConfigured()) { | |
KeyStore keyStore = KeyStore.getInstance(sslService.getKeyStoreType()); | |
try (final InputStream is = new FileInputStream(sslService.getKeyStoreFile())) { | |
keyStore.load(is, sslService.getKeyStorePassword().toCharArray()); | |
} | |
kmf = KeyManagerFactory.getInstance(KeyManagerFactory | |
.getDefaultAlgorithm()); |
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
@Grab(group='org.apache.tika', module='tika-core', version='1.19.1') | |
import org.apache.tika.language.LanguageIdentifier | |
[ | |
ar: "1 فِي الْبَدْءِ كَانَ الْكَلِمَةُ، وَالْكَلِمَةُ كَانَ عِنْدَ اللهِ. وَكَانَ الْكَلِمَةُ اللهُ. 2 هَذَا كَانَ فِي الْبَدْءِ عِنْدَ اللهِ. 3 بِهِ تَكَوَّنَ كُلُّ شَيْءٍ، وَبِغَيْرِهِ لَمْ يَتَكَوَّنْ أَيُّ شَيْءٍ مِمَّا تَكَوَّنَ. 4 فِيهِ كَانَتِ الْحَيَاةُ. وَالْحَيَاةُ كَانَتِ نُورَ النَّاسِ. 5 وَالنُّورُ يُضِيءُ فِي الظَّلاَمِ، وَالظَّلاَمُ لَمْ يُدْرِكْ النُّورَ. 6 ظَهَرَ إِنْسَانٌ أَرْسَلَهُ اللهُ، اسْمُهُ يُوحَنَّا، 7 جَاءَ يَشْهَدُ لِلنُّورِ، لِكَيْ يُؤْمِنَ الْجَمِيعُ بِوَاسِطَتِهِ. 8 لَمْ يَكُنْ هُوَ النُّورَ، بَلْ كَانَ شَاهِداً لِلنُّورِ، 9 فَالنُّورُ الْحَقُّ الَّذِي يُنِيرُ كُلَّ إِنْسَانٍ كَانَ آتِياً إِلَى الْعَالَمِ. 10 كَانَ فِي الْعَالَمِ، وَبِهِ تَكَوَّنَ الْعَالَمُ، وَلَمْ يَعْرِفْهُ الْعَالَمُ. 11 وَقَدْ جَاءَ إِلَى خَاصَّتِهِ، وَلَكِنَّ هَؤُلاَءِ لَمْ يَقْبَلُوهُ. 12 أَمَّا الَّذِينَ قَبِلُوهُ، أَيِ الَّذِينَ آمَنُوا بِاسْمِهِ، فَقَدْ مَنَحَهُمُ الْحَقَّ فِي أَن |
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" standalone="yes"?> | |
<template encoding-version="1.2"> | |
<description></description> | |
<groupId>c4790b93-0166-1000-a0a9-52f4138fb388</groupId> | |
<name>CSV Example</name> | |
<snippet> | |
<processGroups> | |
<id>26f1e79b-ec9b-390a-0000-000000000000</id> | |
<parentGroupId>581487d4-181b-3b23-0000-000000000000</parentGroupId> | |
<position> |