bk2204 / muter Goto Github PK
View Code? Open in Web Editor NEWtool for converting data to and from various formats
License: Other
tool for converting data to and from various formats
License: Other
On Windows echo
adds a carriage return, which muter does not like:
> echo a | muter -c hex
610d0a
> echo a | muter -c hex | muter -c -hex
muter: invalid sequence for codec 'hex':: [13, 10]
Thanks a lot for this awesome program!
Please see https://metacpan.org/release/App-Muter/source/lib/App/Muter.pm#L102
As it stands, this line is a no-op, and Perl doesn't issue a warning, because it's written as method call; should be "$io->binmode();". To help Win32 users, add "$stdout->binmode();" into the same subroutine.
Would be handy if as well as these two being the reverse of each other:
muter -c 'foo:bar:baz'
muter -c '-baz:-bar:-foo'
There was the ability to do this:
muter -r -c 'foo:bar:baz'
This would be pretty simple to do. Accept an "-r" flag which determines that the chain should be reversed, then instantiate App::Muter::Chain like App::Muter::Chain->new($chain, $is_reversed)
. Then when parsing the chain do something like:
if ($is_reversed) {
@chain =
reverse
map { $_->{method} = ($_->{method} eq 'encode' ? 'decode' : 'encode'); $_ }
@chain;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.