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
String[] dates = order.getSessionDate().toString().split("-"); | |
String path = "D:/Projetos/Java/Maex-TestZone/"+dates[0]+"/"+dates[1]+"/"+order.getSymbol()+"/"+dates[2]+".txt"; | |
try { | |
File file = new File(path); | |
file.getParentFile().mkdirs(); | |
if(!file.exists()) | |
file.createNewFile(); | |
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
/* Javadoc style sheet */ | |
/* | |
Overall document style | |
*/ | |
@import url('resources/fonts/dejavu.css'); | |
body { | |
background-color:#313131; | |
color:#FFFFFF; |
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.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.zip.ZipFile; | |
import java.util.zip.ZipInputStream; | |
import com.opencsv.CSVParser; | |
import com.opencsv.CSVParserBuilder; | |
import com.opencsv.CSVReader; |
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.util.HashSet; | |
import java.util.Set; | |
import org.springframework.beans.BeanUtils; | |
import org.springframework.beans.BeanWrapper; | |
import org.springframework.beans.BeanWrapperImpl; | |
public class ServiceUtils { | |
public static String[] getNullPropertyNames (Object source) { |
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.Types; | |
/* | |
<dependency> | |
<groupId>org.xerial</groupId> | |
<artifactId>sqlite-jdbc</artifactId> | |
</dependency> | |
spring.jpa.database-platform=com.shintaro.sqlite.sqliteConfig.SQLiteDialect |
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
[Unit] | |
Description=Admin service | |
After=syslog.target network.target | |
[Service] | |
WorkingDirectory=/home/ec2-user | |
ExecStart=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.amzn2.0.2.x86_64/bin/java -jar admin-server-0.0.1-SNAPSHOT.jar | |
ExecStop=/bin/kill -15 $MAINPID | |
[Install] |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
typedef struct { | |
int codigo; | |
char *data; | |
char descricao[40]; | |
} Registro; |
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
@GetMapping | |
@SuppressWarnings({ "deprecation" }) | |
private ResponseEntity<StreamingResponseBody> get() throws IOException { | |
StreamingResponseBody responseBody = response -> { | |
response.write(("{\"Header\":\"data\",").getBytes()); | |
otherClass(response); | |
response.write(("}").getBytes()); | |
response.flush(); |
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 '~@angular/material/prebuilt-themes/deeppurple-amber.css'; | |
import {NgModule} from '@angular/core'; | |
import {A11yModule} from '@angular/cdk/a11y'; | |
import {ClipboardModule} from '@angular/cdk/clipboard'; | |
import {DragDropModule} from '@angular/cdk/drag-drop'; | |
import {PortalModule} from '@angular/cdk/portal'; | |
import {ScrollingModule} from '@angular/cdk/scrolling'; | |
import {CdkStepperModule} from '@angular/cdk/stepper'; | |
import {CdkTableModule} from '@angular/cdk/table'; |
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
Configuration configuration = new Configuration() | |
.put("java.net.useSystemProxies", "true") | |
.put("http.proxyHost", "localhost") | |
.put("http.proxyPort", "8888") | |
.put("http.proxyUser", "1") | |
.put("http.proxyPassword", "1"); | |
HttpClient nettyHttpClient = new NettyAsyncHttpClientBuilder() | |
.configuration(configuration) | |
.build(); |
OlderNewer