Skip to content

Instantly share code, notes, and snippets.

View AbelAlejandro's full-sized avatar

Abel AbelAlejandro

  • Geneva, Switzerland
View GitHub Profile
@AbelAlejandro
AbelAlejandro / Main.java
Created July 12, 2020 18:10
Reader example
package com.test;
import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
try (Scanner scan = new Scanner(new BufferedInputStream(new FileInputStream("C:\\R3\\par.txt")))) {
while (scan.hasNext()) {
String validString = scan.nextLine();
@AbelAlejandro
AbelAlejandro / stacktrace
Created June 8, 2020 11:14
Stacktrace for Maven Release Plugin not checking out from GitHub
[INFO] Reactor Summary for sfg-pet-clinic 0.0.1:
[INFO]
[INFO] sfg-pet-clinic ..................................... FAILURE [ 0.721 s]
[INFO] pet-clinic-data .................................... SKIPPED
[INFO] pet-clinic-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.426 s
[INFO] Finished at: 2020-06-08T12:09:37+01:00
@AbelAlejandro
AbelAlejandro / incomplete_epoch.rb
Created April 14, 2020 13:50
There's something missing here
(("1549327992429".to_i/1000).seconds).in_time_zone("America/Los_Angeles")
@AbelAlejandro
AbelAlejandro / epoch.rb
Created April 14, 2020 13:44
How to convert epoch/Unix timestamp to DateTime objects in Workato
(("1970-01-01T00:00:00Z").to_time + ("1549327992429".to_i/1000).seconds).in_time_zone("America/Los_Angeles")