Giter Club home page Giter Club logo

bb-scripts's Introduction

Babashka Scripts

Personal babashka scripts.

Getting started

Now the likes of mvn-search.clj can be used from your shell without qualification.

For more convenience, add some shell aliases: e.g.

alias mvn-search="mvn-search.clj"
alias clojars-search="clojars-search.clj"
alias ep="kapi-find.clj"

mvn-search

Search for a specific artifact in Maven Central.

Usage:

mvn-search <search_criteria>

Examples

A general search

$ mvn-search slf4j       
==> WARNING: only display 30 results out of a total of 793.

1) org.slf4j:slf4j-parent
2) org.slf4j:slf4j-bom
3) org.openidentityplatform.commons.i18n-framework:slf4j
more...

==> Please select from the options above.

1
==> WARNING: only display 30 results out of a total of 95.

org.slf4j:slf4j-parent:2.0.9
org.slf4j:slf4j-parent:2.0.8
org.slf4j:slf4j-parent:2.0.7
more...

A more specific search

$ mvn-search org.slf4j/slf4j-api
1) org.slf4j:slf4j-api
2) org.bedework.deploy:bw-wfmodules-org-slf4j-slf4j-api

==> Please select from the options above.

1
==> WARNING: only display 30 results out of a total of 96.

org.slf4j:slf4j-api:2.0.9
org.slf4j:slf4j-api:2.0.8
more...

clojars-search

Search for a specific artifact in Clojars.

Usage:

clojars-search <search_criteria>

Examples

$ clojars-search wiremock
1) kelveden:clj-wiremock
2) b-social:wiremock-wrapper
3) clj-wiremock:clj-wiremock

==> Please select from the options above.

1
kelveden:clj-wiremock:1.8.0
kelveden:clj-wiremock:1.7.0
kelveden:clj-wiremock:1.6.0
more...

ep

Convert a given date/date-time "thing" to some useful data using some opinionated assumptions about what the "thing" is.

Usage:

ep <date_thing>

Examples

The current date/time

$ ep
{:date-time "2023-09-10T18:28:24.623",
 :instant "2023-09-10T17:28:24.623Z",
 :epoch-millis 1694366904623,
 :epoch-days 19610}

A specific instant

$ ep 2023-09-10T00:00:00Z
{:date-time "2023-09-10T01:00",
 :instant "2023-09-10T00:00:00Z",
 :epoch-millis 1694304000000,
 :epoch-days 19610}      

A specific day

$ ep "2023-09-10"      
{:date-time "2023-09-10T01:00",
 :instant "2023-09-10T00:00:00Z",
 :epoch-millis 1694304000000,
 :epoch-days 19610} 

A specific epoch milli

$ ep 1694304000000 
{:date-time "2023-09-10T01:00",
 :instant "2023-09-10T00:00:00Z",
 :epoch-millis 1694304000000,
 :epoch-days 19610}

A specific epoch day

$ ep 1
{:date-time "1970-01-02T01:00",
 :instant "1970-01-02T00:00:00Z",
 :epoch-millis 86400000,
 :epoch-days 1}

bb-scripts's People

Contributors

kelveden avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.