Code Monkey home page Code Monkey logo

filename_analysis's Introduction

filename_analysis

Downloading some Twitter images, I wanted to filter them and give some statistics over hashtags and account names.

And that was just an excuse to do some code :)

What does it do ?

In short : Parse filenames, Map the result and then Sort and Display.

I wanted to do something that I can't do with a regular expression. So I needed a small parser.

I'm using a list of delimiters/separators : by default #|@|. in the GUI where "|" is the separator of separators (so it cannot be used as a separator obviously). I could have used basic one character separators but that was way too simple.

Java

The main project is a Java + JavaFX code within a gradle project. gradlew run.

The interesting part is the parser in the StringSegmentation class. But also with the way I'm sorting the result at the end of the MainController.onChangeDirectory() method.

Launch with : ./gradlew run or .\gradlew.bat run

Javascript - the fna_node submodule

I wanted to compare the code produced between langages.

Javascript has less code but can be tricky also.

The complexity resides in using the Json objects (produced by parsing) as maps and that I want to sort those maps but not maps by values. I found something interesting on StackOverflow (URL is in the code commentaries).

Launch with : npm run dev but don't forget to change the fileList constant with a valid directory path.

filename_analysis's People

Contributors

solostaran 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.