Code Monkey home page Code Monkey logo

simil's Introduction

Hi, I'm Philippe ๐Ÿ‘‹

My most recent & active projects are always pinned.


What I'm currently using and/or learning:

Hover/click over any logo to see info

  • Languages:

python javascript typescript rust bash

  • Frameworks:

nextjs react flask angular

  • Tools:

docker google-cloud linux debian macOS



๐Ÿ“ซ Reach me via: [email protected]

๐Ÿ’ฌ Ask me about anything tech-related, 3D printing and bikes (with & without an engine).

simil's People

Contributors

criomby avatar

Watchers

 avatar  avatar

simil's Issues

option to use global or local config

Option --noconf ignores the config file.

Feature:
To use the global config, set --global-conf (ignore local config file)
To use the local config, set --local-conf (ignore global config file)

If none of the options above are set, searches for a global config first (in exe dir)
and then looks for a project config file (in project dir and then parent dirs).

If config file does not exist, show error.

unused options error

If unused options are given, like --trim without the --noconf flag, the flag just remains unused and no error is shown.

-> Check for unused options (all options under the --noconf flag, if it is not given)

flag to ignore config

accept a flag --ignore-config to ignore the simil.toml config file and check without options.

look for simil.toml in cwd and parent

Look for simil.toml first in exe dir (can set a global config like this).
If not found, look in cwd, go up dirs (parents) until a toml is found, otherwise show error.

new version check

If version is checked with -V, --version, check for new release and display message to user to update

prints different output for same files when reversing argument order

The final result is the same (finds all similarities),
but the grouping for subsequent lines does not work.
(apparently only works when lines are subsequent in file 1,
see output 2: does not group when finding subsequent lines in file 2)

for simil exercises_script.py data_science_script.py:

data_science_script.py (4)
exercises_script.py (16)
>>> Author: Philippe Braum <[email protected]>

data_science_script.py (6)
exercises_script.py (18)
>>> Program: ISM Munich - M.Sc. BIDS

data_science_script.py (573)
exercises_script.py (1178)
>>> for i in range(N_TRIALS):
... x = random.random() * 2 - 1
... y = random.random() * 2 - 1
... if x ** 2 + y ** 2 <= 1:

data_science_script.py (609)
exercises_script.py (1405)
>>> 1,

------------------------------
7 matches found
------------------------------

BUT for simil exercises_script.py data_science_script.py:

exercises_script.py (16)
data_science_script.py (4)
>>> Author: Philippe Braum <[email protected]>

exercises_script.py (18)
data_science_script.py (6)
>>> Program: ISM Munich - M.Sc. BIDS

exercises_script.py (1178)
data_science_script.py (573)
>>> for i in range(N_TRIALS):

exercises_script.py (1180)
data_science_script.py (574)
>>> x = random.random() * 2 - 1

exercises_script.py (1182)
data_science_script.py (575)
>>> y = random.random() * 2 - 1

exercises_script.py (1185)
data_science_script.py (576)
>>> if x ** 2 + y ** 2 <= 1:

exercises_script.py (1405)
data_science_script.py (609)
>>> 1,

------------------------------
7 matches found
------------------------------

config dirs logic

Simil searches for the config file in the exe dir first and then in cwd and its parent dirs (prefers global config).

-> should be the other way around: Searches in cwd and parent dirs first, then looks for a global config.

Using the flag --global-conf, the program should be able to be configured to ignore the local config and use the global one instead.

flag to use absolute filepaths

Simil uses the filepath arguments to create a path from the cwd (filepath = cwd + / + filepath).
Create a flag like --abspath to ignore the cwd and be able to provide absolute paths to the files.

move to clap

Move from self-written command line argument parser to clap crate

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.