Skip to content

Instantly share code, notes, and snippets.

View fcastillo18's full-sized avatar
🎯
Focusing

Franklin Castillo fcastillo18

🎯
Focusing
View GitHub Profile
@djfdyuruiry
djfdyuruiry / MultiThreadedCsvReaderWriter.java
Last active July 5, 2024 12:03
Multi-threaded CSV Reader/Writer for Java
// uses Apache commons CSV, IO and Lang
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVPrinter;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 4, 2025 01:31
Conventional Commits Cheatsheet
@jgdev
jgdev / validate-document-id.js
Created September 18, 2017 14:54
Function to validate identity document - Dominican Republic - Javascript
function isValidDocument(document) {
if (!document) return false;
if (document.includes('-')) {
document = document.replace(/-/g, '');
}
let verificador = 0;
let digito = 0;
let digitoVerificador = 0;
let digitoImpar = 0;
let sumaPar = 0;
@folt
folt / gist:a98e9368dbe1dcbfce7198c16b862c92
Last active November 2, 2025 12:49
Balsamiq Mockups 3 crack
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@phillipgreenii
phillipgreenii / README.md
Last active September 25, 2025 14:56
Running NPM Scripts through maven

I am in the process of introducing single page applications to where I work. For development, using node based build tools is much easier for the single page applications. However, the build process for our organization is based upon maven. Our solution started with the maven plugin frontend-maven-plugin. It worked great at first, but then we ran into a situation that I couldn't make work with it.

As stated before, at our organization, we have the older ecosystem which is maven and the newer ecosystem which is node. Our goal was to keep the hacking to a minimum. We did this by putting all of the hacks into a single super node based build file. This is what maven calls and the reason frontend-maven-plugin wasn't sufficient. The super node based build script calls all of the other build scripts by spawning npm run. Try as I might, I could not figure out how to make the spawn work. front-end-maven-plugin downloads npm

@johngrimes
johngrimes / date.sql
Created May 21, 2010 07:03
MySQL Date Dimension Build Script
/* Adapted from Tom Cunningham's 'Data Warehousing with MySql' (www.meansandends.com/mysql-data-warehouse) */
###### small-numbers table
DROP TABLE IF EXISTS numbers_small;
CREATE TABLE numbers_small (number INT);
INSERT INTO numbers_small VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
###### main numbers table
DROP TABLE IF EXISTS numbers;
CREATE TABLE numbers (number BIGINT);