Git Product home page Git Product logo

combostew's Introduction

Hello! I'm Martijn

ใ€๐Ÿฆ I'm a Software Engineer from The Netherlands. I love open source, software design and language engineering!ใ€‘

languages Rust Java typescript Python


Blog: foresterre.github.io

A selection of my open source projects:

๐Ÿ“ฆ Project ๐Ÿ‘ Description โญ Stars โœจ Activity
๐Ÿฆ€ cargo-msrv Find the minimum supported Rust version (MSRV) for your project repo activity repo activity
๐Ÿฆœ sic Accessible image processing and conversion from the terminal. Front-end for image-rs/image. repo activity repo activity
๐Ÿ›ฌ rust-releases Identify the officially available Rust releases repo activity repo activity
๐ŸŽน bisector Flexible, stateless implementation of the bisection method repo activity repo activity
๐Ÿ‘€ peekmore Multi-peek, no-std, iterator for Rust repo activity repo activity
๐ŸŽ™ storyteller A library for working with user output repo activity repo activity
๐Ÿ‘ parameterized JUnit style parameterized testing for Rust repo activity repo activity
๐Ÿ›ถ yare Lean parameterized testing library for Rust repo activity repo activity

And more:


contact โœ‰ โœ‰ โ€ profiles

combostew's People

Contributors

dependabot-preview[bot] avatar foresterre avatar

Watchers

 avatar  avatar  avatar

combostew's Issues

Rethink components further

Combostew is an intermediate crate between the front-ends 'sic' and 'stew' and the image crate.

Combostew however contains a variety of components, which could (should?) be split up further.
For example, the shared clap interface can be split from the image operations.

Combostew: Intermediate Component

Combostew aims to be an intermediate component which can be placed in between the sic and stew front-ends. Currently sic and stew are largely the same project (i.e. they share a major part of the code base) except for the way they interact with an end user.

Notable differences:

> Sic Stew
User facing front-end All image transformation tools combined in a single executable A separate executable for each tool
Operations (n) at a time, n \in Z+ n >= 1 n = 1
Combine operations Using a declarative syntax Using pipes
Operation choice / parsing PEG parser, custom declarative syntax By executable name

Notable similarities

  • Interaction with backend 'image' crate

High level overview:

combostew initial concept

Higher level overview:

----------------           --------------               ----------------
| crate 'image' | <------> | combostew  | <-----------> | sic XOR stew |
----------------           --------------               ----------------
"back end"              "intermediate component"      "frond end component"

Shared code between

Add option to deregister an image command environment item.

With Environment.insert_or_update we can set an EnvironmentItem, but we can not deregister it to return to the default. You can explicitly set it to the default EnvironmentItem however. Yet it would be useful to go back to the default value. Even more so after flags are added (thereby not needing to require a value like true for the flag).


PR: #16

[bug] windows: unable to determine image format from stdin

original listed issue: foresterre/stew#15


Windows (powershell):

  • cat resources\botanical.jpg) | target\debug\blur.exe -o "hi2.png" 10 โŒ
  • Get-Content resources\botanical.jpg | target\debug\blur.exe -o "hi2.png" 10 โŒ

with swallow as reference:

  • cargo run -- ..\stew\resources\botanical.jpg | ..\stew\target\debug\blur.exe -o "hi2.png" 10 โŒ

with uutils/coreutils cat as reference:

  • uucat ..\stew\resources\botanical.jpg | ..\stew\target\debug\blur.exe -o "hi2.png" 10 โŒ

(dev):
Get-Content .\resources\botanical.jpg | cargo run --bin blur -- -o "hi2.png" 10

Output:

If stdin is empty, the programs waits for input until a termination signal has been received (usually you can send it by pressing Ctrl+D in your terminal).
Read 57290 bytes. Continuing.
Error: "The Decoder does not support the image format `Unsupported image format`"

PS >  Get-FileHash .\resources\botanical.jpg -Algorithm SHA1

Algorithm       Hash                                                                  
---------      ----                                                        
SHA1            6FC6B7553665F03642496E93E7B0BC9100EA530E

Windows (powershell, raw):

  • Get-Content -Raw resources\botanical.jpg | target\debug\blur.exe -o "hi2.png" 10 โŒ

Ubuntu:

  • cat resources/botanical.jpg | ./target/debug/blur -o "hi2.png" 10 ๐Ÿ†—

Output:

If stdin is empty, the programs waits for input until a termination signal has been received (usually you can send it by pressing Ctrl+D in your terminal).
Read 56939 bytes. Continuing.

> sha1sum hi2.png 
6faa218c041b3e7ee3120a577e69ba4b6cdf4a8b  hi2.png

> sha1sum resources/botanical.jpg 
6fc6b7553665f03642496e93e7b0bc9100ea530e  resources/botanical.jpg


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.