GithubHelp home page GithubHelp logo

ppmini's Introduction

ppmini

This program is file (de)compresseor written in JavaScript + HTML. Its size is smaller than 800bytes! compression raito is usually better than gzip(especially text file).

f2f-tiny.htm

smallest implementation. Its code is minified. GUI is very simple. and description is too small.

usage

  • o[number] -- input context order. range is 0-255. empty means 0. best balanced value is 2.
  • dec -------- if checked it then unpack file else pack file.
  • DL --------- if process is done, click here to download file.

f2f-tiny2.htm

almost the same as f2f-tiny.htm. it uses carryless range coder.

rich.htm

Its GUI is rich. Its code is not minified. But size is over than 3KB.

usage

  • mem[number] --- max count of context model. range is 0-255. Its value is converted to 1e4*number. 0 means unlimited.
  • order[number] - It is the same as f2f-tiny.htm of 'o'.
  • unpack -------- if checked it then unpack file else pack file.

10items.htm

Included improved versions(Information Inheritance, Secondary Escape Estimation). It outputs program code and its demo. You can download programs from bottom button. usage is the almost the same as f2f-tiny.htm. Difference is maximum order. program No8 and No10 is 31, others are 7.

10items-2.htm

almost the same as above. difference is maximum order(255).

10items-3.htm

includes smaller codes.

ppmini.js

Its file includes a function '_' only. _ does encoding/decoding. its size is 609 bytes. no need for above all html.

usage

_(k,n,f)

  • @k ------ Array / Uint8Array.
  • @n ------ context order. range is 0-7. Not a number means 0. best balanced value is 2.
  • @f ------ false means encoding. true means decoding
  • return -- if @f is false, return packed @k else unpacked @k.
//compress
var c=_([109,105,115,115,105,115,115,105,112,112,105],0),
//decompress
d=_(c,0,!0)

ppmini's People

Contributors

da0ka avatar

Watchers

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