Skip to content

Instantly share code, notes, and snippets.

View julianoBRL's full-sized avatar
🕹️
Loading...

Juliano Lira julianoBRL

🕹️
Loading...
View GitHub Profile
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();
@julianoBRL
julianoBRL / stylesheet.css
Created December 16, 2021 00:32
Style Dark-Cherry for Generated JavaDocs
/* Javadoc style sheet */
/*
Overall document style
*/
@import url('resources/fonts/dejavu.css');
body {
background-color:#313131;
color:#FFFFFF;
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;
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) {
import java.sql.Types;
/*
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
</dependency>
spring.jpa.database-platform=com.shintaro.sqlite.sqliteConfig.SQLiteDialect
[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]
@julianoBRL
julianoBRL / Eniac-2022.c
Last active February 21, 2022 21:23
2022 - 1F - Fevereiro - Programação Estruturada
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef struct {
int codigo;
char *data;
char descricao[40];
} Registro;
@GetMapping
@SuppressWarnings({ "deprecation" })
private ResponseEntity<StreamingResponseBody> get() throws IOException {
StreamingResponseBody responseBody = response -> {
response.write(("{\"Header\":\"data\",").getBytes());
otherClass(response);
response.write(("}").getBytes());
response.flush();
@julianoBRL
julianoBRL / material.module.ts
Last active March 25, 2022 14:18
Angular material import
@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';
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();