Skip to content

Instantly share code, notes, and snippets.

View fricred's full-sized avatar
🏠
Working from home

Jeisson Huerfano fricred

🏠
Working from home
  • Revstar Consulting
  • Colombia
  • 10:43 (UTC -05:00)
View GitHub Profile
@fricred
fricred / README.md
Last active June 23, 2023 22:57
An enhanced directory structure generator script written in zsh.

Directory Structure Generator Script

This zsh script generates a directory structure of a given directory up to a specified depth. It's enhanced with several features:

  • Ignores files and folders specified in .gitignore.
  • Uses emojis to represent different types of files and directories, offering a more visual and intuitive representation of the structure.
  • Allows customization of the depth to list and the output file through command-line arguments.

Usage

@fricred
fricred / EntityQuery.java
Created September 17, 2018 14:03 — forked from ufuk/JpaEntityQueryBuilder.java
Easy to use query builder for JPA Criteria API (including example usages)
package ...;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.*;
import java.util.*;
import java.util.stream.Collectors;