Blog

  • Iroha-archived

    Visit original content creator repository
    https://github.com/blockchain-Bobby/Iroha-archived

  • truwrap

    truwrap

    A node module for text wrapping into streams that supports 24bit color SGR codes.

    Publishing Status

    npm Libraries.io
    Travis Rollup

    Development Status

    Travis Libraries.io
    Snyk Code-Climate Code-Climate Coverage

    Documentation/Help

    Twitter

    v4 Breaking change The CLI command has been seperated into it’s own repo truwrap-cli

    Many current tty text wrapping solutions have issues with the ‘long’ and currently ‘non-standard’ RGB SGR codes (i.e ^[[38;2;204;51;66m). This meant that, while it’s possible to have wonderful, rich, full gamut colours and the aesthetic data visualisations it entails, it comes at the price of painful typography and corrupted console displays as text is broken up, unnaturally wrapped and becoming unreadable as the SGR codes are dashed against the rocks of 1980’s shortsightedness, confusing your terminal and ever so slightly breaking the heart of design aware coders and administrators everywhere.

    Clearly this is unnacceptable!

    Previously, the only solution was to take a last, long whistful look at how great console colour could be, before going back to the, at best, 256 colours of the xterm pallette, with it’s lack of useful greens and overly dark purples, or, for some, the even more cruelly devastating 16 colours of the ansi pallette, before heading to the stationary cupboard for a bit of a cry.

    But weep no more!

    Developed as part of our internal data visualisation system, where having the fidelity of 24 bit colour and embedded images (currently macOS iTerm only) was a huge advantage.

    Usage

    Installation

    npm install --save @thebespokepixel/truwrap
    import {truwrap} from '@thebespokepixel/truwrap'
    
    var writer = truwrap({
      left: 2,
      right: 2,
      mode: 'soft',
      outStream: process.stderr
    })
    
    var contentWidth = writer.getWidth()
    
    writer.write("Some text to write...", "...and some more.")
    writer.write("A new paragraph, if not implicitly present.")
    writer.end() // Close the stream

    mode can be set to the following values:

    • soft: words are broken before the column width, giving a left justified appearance.
    • hard: words are split at the column width.
    • keep: lines longer than the column width are kept.
    • container: left and right margins are ignored, giving a full width line.

    As outStream was specified, wrapped output is written directly to the stream.

    Images

    If your terminal suppots them, you can add images into the wrapped output text.

    To ensure that images are not used by default you need to set the env var TERM_IMAGES=enabled in your shell. See term-ng for details.

    import {truwrap, createImage} from '@thebespokepixel/truwrap'
    
    const image = createImage({
      name: 'test',
      file: join(dirname(fileURLToPath(import.meta.url)), '../media/test.png'),
      width: 'auto', // Number of chars wide you'd like image. 'auto' to take it from the image/set height.
      height: 1,     // Number of lines the image will take
      space: '   '   // A text string that is printed under the image so you can flow the wrapped text around it.
    })
    
    var renderer = truwrap({
      mode: 'container'
    })
    
    truwrap.write(image.render({
      nobreak: true,  // Don't add a linebreak after the image.
      stretch: false, // If true, distort the image the image to fit the width/height
      align: 1        // How many lines to move back up after printing the image.
      spacing: ' '    // A string to print after realigning the cursor after printing the image.
    }))
    
    console.log(truwrap.end())

    As no outStream was specified truwrap.end() returns the wrapped text.

    Panels

    import {truwrap, parsePanel} from '@thebespokepixel/truwrap'
    
    var writer = truwrap({
      left: 2,
      right: 2,
      mode: 'soft',
      outStream: process.stderr
    })
    
    const panelSource = parsePanel(
      'One|Two|Three|Four', //Input text with column delimiters
      '|',                  // Column delimiter
      writer.getWidth()     // Total width (chars) to make columns across
    )
    
    const panelOptions = {
      maxLineWidth: writer.getWidth(),    // Maximum line width
      showHeaders: false,                 // Show colum headers
      truncate: false,                    // Truncate columns if too wide
      config: panelSource.configuration   // Get config information from parsePanel()
    }
    
    writer.panel(panelSource.content, panelOptions)
    writer.end() //Close stream

    Related

    For advanced 24bit colour handling see thebespokepixel/trucolor and npm trucolor.

    Documentation

    Full documentation can be found at https://thebespokepixel.github.io/truwrap/

    Visit original content creator repository https://github.com/thebespokepixel/truwrap
  • fem-space-tourism

    Frontend Mentor – Space tourism website solution

    This is a solution to the Space tourism website challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

    Table of contents

    Note: Delete this note and update the table of contents based on what sections you keep.

    Overview

    The challenge

    Users should be able to:

    • View the optimal layout for each of the website’s pages depending on their device’s screen size
    • See hover states for all interactive elements on the page
    • View each page and be able to toggle between the tabs to see new information

    Screenshot

    screenshot

    Add a screenshot of your solution.

    Note: Delete this note and the paragraphs above when you add your screenshot. If you prefer not to add a screenshot, feel free to remove this entire section.

    Links

    My process

    Built with

    • Vite ReactJS
    • CSS Modules
    • React – JS library

    What I learned

    By building this webapp with reactJS, I learn a lot about single page application and how to build an app by creating every single components and then assemble them. By building a component one by one, it’s very helpful to keep the application easy to understand for beginner developer, and also will make the debugging and maintenance process faster and easier.

    Continued development

    Use this section to outline areas that you want to continue focusing on in future projects. These could be concepts you’re still not completely comfortable with or techniques you found useful that you want to refine and perfect.

    Note: Delete this note and the content within this section and replace with your own plans for continued development.

    Useful resources

    • Vite Official – This helped me for building an app with Vite.

    Author

    Acknowledgments

    This is where you can give a hat tip to anyone who helped you out on this project. Perhaps you worked in a team or got some inspiration from someone else’s solution. This is the perfect place to give them some credit.

    Note: Delete this note and edit this section’s content as necessary. If you completed this challenge by yourself, feel free to delete this section entirely.

    Visit original content creator repository
    https://github.com/ykyouki/fem-space-tourism

  • alp-aca

    ALPaca

    Version DOI arxiv

    Welcome to the ALP Automated Computed Algorithm (ALPaca)!

    ALPaca logo

    ALPaca is an open-source Python library for the phenomenology of Axion-Like Particles (ALPs) with masses in the ranges of $m_a \sim 0.01 – 10,\mathrm{GeV}$, mainly in processes involving mesons.

    ALPaca integrates the full analysis with an easy-to-use syntax:

    • Matching of selected UV-complete models (DFSZ-like, KSVZ-like, flaxions, etc.) to the ALP-EFT.
    • Numerical running and matching of the ALP-EFT coefficients down to the physical relevant scales, including ALP-$\chi!$ PT.
    • Calulation of decay rates for processes involving ALPs:
      • ALP production in rare meson decays $M_1\to M_2 a$, quarkonia decays $V\to \gamma a$ and non-resonant production $e^+e^- \to \gamma a$,
      • ALP decays into photons, leptons and mesons,
      • Processes mediated by on-shell ALPs in the Narrow Width Approximation,
      • Leptonic and radiative meson decays, and meson mixing, with off-shell ALPs.
    • Calculation of ALP decay lengths and probability of decaying outside the detector, with a displaced vertex or in the prompt region.
    • $\chi^2$ statistical analysis, with fine-grained control of the observables and experimental measurements included.
    • Generation of publication-grade exclusion plots.
    • Automatic management of the bibliographical references used in the analysis.

    The ALPaca team

    • Jorge Alda: Università degli Studi di Padova & INFN Sezione di Padova & CAPA Zaragoza.
    • Marta Fuentes Zamoro: Universidad Autónoma de Madrid & IFT Madrid.
    • Luca Merlo: Universidad Autónoma de Madrid & IFT Madrid.
    • Xavier Ponce Díaz: University of Basel.
    • Stefano Rigolin: Università degli Studi di Padova & INFN Sezione di Padova.

    ALPaca in action

    In this repositoy you can find examples, tutorials and applications of ALPaca.

    ALPaca has been used in the following publications:

    • J. Alda, M. Fuentes Zamoro, L. Merlo, X. Ponce Díaz, S. Rigolin: Comprehensive ALP searches in Meson Decays. arXiv:2507.19578

    If you have used ALPaca in your publication and want to be featured in this list, please contact us.

    Installation

    ALPaca can be installed with pip:

    pip3 install alpaca-ALPs

    It is strongly recommended to install ALPaca inside a virtual environment (venv), in order to avoid clashes with conflicting versions of the dependencies. In order to create a venv, execute the following command

    python3 -m venv pathToVenv

    where pathToVenv is the location where the files of the venv will be stored. In order to activate the venv, for Linux or MacOS using bash or zsh

    source pathToVenv/bin/activate

    For Windows using cmd.exe

    C:\> pathToVenv\Scripts\Activate.bat

    And for Windows using PowerShell

    PS C:\> path_to_venv\Scripts\Activate.ps1

    Once the venv is activated, ALPaca can be normally installed and used.

    Citing ALPaca

    If you use ALPaca, please cite

    @article{Alda:2025nsz,
        author = "Alda, Jorge and Fuentes Zamoro, Marta and Merlo, Luca and Ponce D{\'\i}az, Xavier and Rigolin, Stefano",
        title = "{ALPaca: The ALP Automatic Computing Algorithm}",
        eprint = "2508.08354",
        archivePrefix = "arXiv",
        primaryClass = "hep-ph",
        reportNumber = "IFT-UAM/CSIC-25-82",
        month = "8",
        year = "2025"
    }
    
    @software{alda_2025_16447036,
      author       = {Alda, Jorge and
                      Fuentes Zamoro, Marta and
                      Merlo, Luca and
                      Rigolin, Stefano and
                      Ponce Díaz, Xavier},
      title        = {ALPaca v1.0},
      month        = jul,
      year         = 2025,
      publisher    = {Zenodo},
      version      = {v1.0.0},
      doi          = {10.5281/zenodo.16447036},
      url          = {https://doi.org/10.5281/zenodo.16447036},
    }

    Documentation

    The ALPaca manual is available on arXiv.

    You can also check the automatically-generated documentation.

    Feedback

    If you encounter bugs or want to propose a new feature, you can contact us using Gihub issues.

    Visit original content creator repository https://github.com/alp-aca/alp-aca
  • opennms-riptide

    Riptide – Netflow v5 generator

    Riptide generates Netflow v5 packets for simulated TCP sessions.

    Compile and Install

    Run the following command to build the tool:

    mvn package
    

    Usage

    To start, the following command can be used:

    java -Dorg.slf4j.simpleLogger.defaultLogLevel=debug \
         -jar target/org.opennms.riptide-1.0-SNAPSHOT-jar-with-dependencies.jar \
         test.yaml \
         1.2.3.4:1234
    

    The following options and arguments are allowed:

    FILE
    : The file containing the TCP session definition

    HOST:PORT
    : Host and port of the Netflow receiver – can be specified multiple times

    -flush-interval SECS
    : The interval used to flush out Netflow packets

    -dry-run
    : Do not send Packets

    -source HOST:PORT
    : Spoofs the source address of the Netflow packets

    Source address spoofing

    To spoof the source address of outgoing Netflow packets, RockSaw must be installed.
    After building RockSaw from source, the following Parameter must be added to the java call:

    -Djava.library.path=/path/to/resulting/library
    

    In addition, the tool must be run as root user.

    TCP Session Definition

    The simulated TCP session is described by a yaml file.
    See test.yaml for an example.

    Visit original content creator repository
    https://github.com/opennms-forge/opennms-riptide

  • gemwarrior-web

    Gem Warrior (web)

    A web version of the Gem Warrior RubyGem.

    /-+-+-+ +-+-+-+-+-+-+-\
    |G|E|M| |W|A|R|R|I|O|R|
    \-+-+-+ +-+-+-+-+-+-+-/

    logo courtesy of ascii generator

    Gem Warrior is a text adventure that takes place in the land of Jool, where randomized fortune is just as likely as mayhem.

    You take up the mantle of [RANDOM NAME HERE], a gifted young acolyte who has been tasked by the queen herself, Ruby, to venture off into the unknown to recapture a Shiny ThingTM that holds great power within its crystallized boundaries. Unfortunately, it was stolen recently by a crazed madperson named Emerald, bent on using its frightening power for Evil. You are Good, obviously, and the rightful caretaker of such power, but he will not give it up willingly, and has cursed all the creatures of the land into doing his bidding, which is largely tearing you limb from limb.

    Start in your poor, super lame cottage, where you live alone, subsisting off the sale of polished rocks you scavenge all day for in the neighboring caves. Once tasked with your quest, travel throughout the land of Jool, eventually reaching the sky tower that Emerald resides in with his stolen goods, laughing to himself, occasionally.

    As you travel you will discover sights and sounds of the land, all of which are new to you because you don’t really get out much. Visit towns with merchants willing to trade coin for wares they bought off of other adventurers who didn’t last the previous attempts at thwartion. Sleep in a tent (or on the ground, if that’s all that’s available) to regain your enumerated status points, which are conveniently located in your peripheral vision (i.e. the console window). Eventually, if you’re skilled, you’ll reach Emerald’s Sky Tower, part him from his ShinyThingtm, and then do what is “right”.

    Main Commands

    > (c)haracter – character check for weapon/armor/status
    > (i)nventory – check your inventory
    > (si)t – change status to sitting
    > (st)and – change status to standing
    > (sl)eep – change status to sleeping

    > (l)ook [object] – look at current location and its items and monsters
    > (g)et/(p)ickup/(t)ake [object] – take an item from the current location
    > (dr)op [object] – drop an item to the current location
    > (u)se [object] – use an item from your inventory or current location (use ‘with’ or ‘on’ to combine with other item)

    > go [direction] – go in a direction, if possible (north|east|south|west work as shortcuts)

    > (h)elp – display available commands
    > (hist)ory – display command history
    > (a)bout – display information about the creator of GemWarrior
    > (ch)ange [attribute] – change some things about yourself or the game

    Subsystems

    Avatar

    Uses a Web Worker to change your avatar (if you so choose to display it) and its characteristics.

    Audio

    Uses webaudio-tinysynth for making noise.

    Favicon

    Uses SVGs from icones.netlify.app.

    Storage

    Uses CacheStorage to save your adventure’s records.

    Contributing

    Clone repo and get to messing with things. It’s all HTML, CSS, and JS (with some jQuery).

    Visit original content creator repository
    https://github.com/michaelchadwick/gemwarrior-web

  • dgenies

    GitHub release PyPI version GitHub license made-with-python Documentation Status Github all releases Downloads

    D-Genies

    Dot plots are widely used to quickly compare sequence sets. They provide a synthetic similarity overview, highlighting repetitions, breaks and inversions. Different tools have been developed to easily generated genomic alignment dot plots, but they are often limited in the input sequence size. D-GENIES is a standalone and WEB application performing large genome alignments using Minimap2 or MashMap v2.0 software packages and generating interactive dot plots. It enables users to sort query sequences along the reference, zoom in the plot and download several image, alignment or sequence files. D-GENIES is an easy to install open source software package (GPL) developed in Python and JavaScript.

    Quick start

    This will run dgenies in standalone mode with Linux and OS X. With Windows, please use Linux through WSL

    • First, install conda (once).
    • Then, install D-Genies (also once):
    conda create -c conda-forge -c bioconda -n dgenies dgenies
    
    • Finally, run D-Genies:
    conda activate dgenies
    dgenies run
    

    D-Genies will open a browser window. It, can be stop by hitting Ctrl + C in terminal

    How to use?

    You can use the demo instance hosted at genotoul.

    Or you can deploy your own instance with the help of the installation documentation.

    Documentation

    Full documentation, including code API, is available here.

    How to cite?

    Cabanettes F, Klopp C. (2018) D-GENIES: dot plot large genomes in an interactive, efficient and simple way. PeerJ 6:e4958 https://doi.org/10.7717/peerj.4958

    Credits

    D-Genies is developed by the Bioinfo team of the Genotoul platform (INRAE).

    Visit original content creator repository https://github.com/genotoul-bioinfo/dgenies
  • dgenies

    GitHub release PyPI version GitHub license made-with-python Documentation Status Github all releases Downloads

    D-Genies

    Dot plots are widely used to quickly compare sequence sets. They provide a synthetic similarity overview, highlighting repetitions, breaks and inversions. Different tools have been developed to easily generated genomic alignment dot plots, but they are often limited in the input sequence size. D-GENIES is a standalone and WEB application performing large genome alignments using Minimap2 or MashMap v2.0 software packages and generating interactive dot plots. It enables users to sort query sequences along the reference, zoom in the plot and download several image, alignment or sequence files. D-GENIES is an easy to install open source software package (GPL) developed in Python and JavaScript.

    Quick start

    This will run dgenies in standalone mode with Linux and OS X. With Windows, please use Linux through WSL

    • First, install conda (once).
    • Then, install D-Genies (also once):
    conda create -c conda-forge -c bioconda -n dgenies dgenies
    
    • Finally, run D-Genies:
    conda activate dgenies
    dgenies run
    

    D-Genies will open a browser window. It, can be stop by hitting Ctrl + C in terminal

    How to use?

    You can use the demo instance hosted at genotoul.

    Or you can deploy your own instance with the help of the installation documentation.

    Documentation

    Full documentation, including code API, is available here.

    How to cite?

    Cabanettes F, Klopp C. (2018) D-GENIES: dot plot large genomes in an interactive, efficient and simple way. PeerJ 6:e4958 https://doi.org/10.7717/peerj.4958

    Credits

    D-Genies is developed by the Bioinfo team of the Genotoul platform (INRAE).

    Visit original content creator repository https://github.com/genotoul-bioinfo/dgenies
  • plugin.video.otrstream

    		    GNU GENERAL PUBLIC LICENSE
    		       Version 2, June 1991
    
     Copyright (C) 1989, 1991 Free Software Foundation, Inc.
                           59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
    
    			    Preamble
    
      The licenses for most software are designed to take away your
    freedom to share and change it.  By contrast, the GNU General Public
    License is intended to guarantee your freedom to share and change free
    software--to make sure the software is free for all its users.  This
    General Public License applies to most of the Free Software
    Foundation's software and to any other program whose authors commit to
    using it.  (Some other Free Software Foundation software is covered by
    the GNU Library General Public License instead.)  You can apply it to
    your programs, too.
    
      When we speak of free software, we are referring to freedom, not
    price.  Our General Public Licenses are designed to make sure that you
    have the freedom to distribute copies of free software (and charge for
    this service if you wish), that you receive source code or can get it
    if you want it, that you can change the software or use pieces of it
    in new free programs; and that you know you can do these things.
    
      To protect your rights, we need to make restrictions that forbid
    anyone to deny you these rights or to ask you to surrender the rights.
    These restrictions translate to certain responsibilities for you if you
    distribute copies of the software, or if you modify it.
    
      For example, if you distribute copies of such a program, whether
    gratis or for a fee, you must give the recipients all the rights that
    you have.  You must make sure that they, too, receive or can get the
    source code.  And you must show them these terms so they know their
    rights.
    
      We protect your rights with two steps: (1) copyright the software, and
    (2) offer you this license which gives you legal permission to copy,
    distribute and/or modify the software.
    
      Also, for each author's protection and ours, we want to make certain
    that everyone understands that there is no warranty for this free
    software.  If the software is modified by someone else and passed on, we
    want its recipients to know that what they have is not the original, so
    that any problems introduced by others will not reflect on the original
    authors' reputations.
    
      Finally, any free program is threatened constantly by software
    patents.  We wish to avoid the danger that redistributors of a free
    program will individually obtain patent licenses, in effect making the
    program proprietary.  To prevent this, we have made it clear that any
    patent must be licensed for everyone's free use or not licensed at all.
    
      The precise terms and conditions for copying, distribution and
    modification follow.
    
    		    GNU GENERAL PUBLIC LICENSE
       TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    
      0. This License applies to any program or other work which contains
    a notice placed by the copyright holder saying it may be distributed
    under the terms of this General Public License.  The "Program", below,
    refers to any such program or work, and a "work based on the Program"
    means either the Program or any derivative work under copyright law:
    that is to say, a work containing the Program or a portion of it,
    either verbatim or with modifications and/or translated into another
    language.  (Hereinafter, translation is included without limitation in
    the term "modification".)  Each licensee is addressed as "you".
    
    Activities other than copying, distribution and modification are not
    covered by this License; they are outside its scope.  The act of
    running the Program is not restricted, and the output from the Program
    is covered only if its contents constitute a work based on the
    Program (independent of having been made by running the Program).
    Whether that is true depends on what the Program does.
    
      1. You may copy and distribute verbatim copies of the Program's
    source code as you receive it, in any medium, provided that you
    conspicuously and appropriately publish on each copy an appropriate
    copyright notice and disclaimer of warranty; keep intact all the
    notices that refer to this License and to the absence of any warranty;
    and give any other recipients of the Program a copy of this License
    along with the Program.
    
    You may charge a fee for the physical act of transferring a copy, and
    you may at your option offer warranty protection in exchange for a fee.
    
      2. You may modify your copy or copies of the Program or any portion
    of it, thus forming a work based on the Program, and copy and
    distribute such modifications or work under the terms of Section 1
    above, provided that you also meet all of these conditions:
    
        a) You must cause the modified files to carry prominent notices
        stating that you changed the files and the date of any change.
    
        b) You must cause any work that you distribute or publish, that in
        whole or in part contains or is derived from the Program or any
        part thereof, to be licensed as a whole at no charge to all third
        parties under the terms of this License.
    
        c) If the modified program normally reads commands interactively
        when run, you must cause it, when started running for such
        interactive use in the most ordinary way, to print or display an
        announcement including an appropriate copyright notice and a
        notice that there is no warranty (or else, saying that you provide
        a warranty) and that users may redistribute the program under
        these conditions, and telling the user how to view a copy of this
        License.  (Exception: if the Program itself is interactive but
        does not normally print such an announcement, your work based on
        the Program is not required to print an announcement.)
    
    These requirements apply to the modified work as a whole.  If
    identifiable sections of that work are not derived from the Program,
    and can be reasonably considered independent and separate works in
    themselves, then this License, and its terms, do not apply to those
    sections when you distribute them as separate works.  But when you
    distribute the same sections as part of a whole which is a work based
    on the Program, the distribution of the whole must be on the terms of
    this License, whose permissions for other licensees extend to the
    entire whole, and thus to each and every part regardless of who wrote it.
    
    Thus, it is not the intent of this section to claim rights or contest
    your rights to work written entirely by you; rather, the intent is to
    exercise the right to control the distribution of derivative or
    collective works based on the Program.
    
    In addition, mere aggregation of another work not based on the Program
    with the Program (or with a work based on the Program) on a volume of
    a storage or distribution medium does not bring the other work under
    the scope of this License.
    
      3. You may copy and distribute the Program (or a work based on it,
    under Section 2) in object code or executable form under the terms of
    Sections 1 and 2 above provided that you also do one of the following:
    
        a) Accompany it with the complete corresponding machine-readable
        source code, which must be distributed under the terms of Sections
        1 and 2 above on a medium customarily used for software interchange; or,
    
        b) Accompany it with a written offer, valid for at least three
        years, to give any third party, for a charge no more than your
        cost of physically performing source distribution, a complete
        machine-readable copy of the corresponding source code, to be
        distributed under the terms of Sections 1 and 2 above on a medium
        customarily used for software interchange; or,
    
        c) Accompany it with the information you received as to the offer
        to distribute corresponding source code.  (This alternative is
        allowed only for noncommercial distribution and only if you
        received the program in object code or executable form with such
        an offer, in accord with Subsection b above.)
    
    The source code for a work means the preferred form of the work for
    making modifications to it.  For an executable work, complete source
    code means all the source code for all modules it contains, plus any
    associated interface definition files, plus the scripts used to
    control compilation and installation of the executable.  However, as a
    special exception, the source code distributed need not include
    anything that is normally distributed (in either source or binary
    form) with the major components (compiler, kernel, and so on) of the
    operating system on which the executable runs, unless that component
    itself accompanies the executable.
    
    If distribution of executable or object code is made by offering
    access to copy from a designated place, then offering equivalent
    access to copy the source code from the same place counts as
    distribution of the source code, even though third parties are not
    compelled to copy the source along with the object code.
    
      4. You may not copy, modify, sublicense, or distribute the Program
    except as expressly provided under this License.  Any attempt
    otherwise to copy, modify, sublicense or distribute the Program is
    void, and will automatically terminate your rights under this License.
    However, parties who have received copies, or rights, from you under
    this License will not have their licenses terminated so long as such
    parties remain in full compliance.
    
      5. You are not required to accept this License, since you have not
    signed it.  However, nothing else grants you permission to modify or
    distribute the Program or its derivative works.  These actions are
    prohibited by law if you do not accept this License.  Therefore, by
    modifying or distributing the Program (or any work based on the
    Program), you indicate your acceptance of this License to do so, and
    all its terms and conditions for copying, distributing or modifying
    the Program or works based on it.
    
      6. Each time you redistribute the Program (or any work based on the
    Program), the recipient automatically receives a license from the
    original licensor to copy, distribute or modify the Program subject to
    these terms and conditions.  You may not impose any further
    restrictions on the recipients' exercise of the rights granted herein.
    You are not responsible for enforcing compliance by third parties to
    this License.
    
      7. If, as a consequence of a court judgment or allegation of patent
    infringement or for any other reason (not limited to patent issues),
    conditions are imposed on you (whether by court order, agreement or
    otherwise) that contradict the conditions of this License, they do not
    excuse you from the conditions of this License.  If you cannot
    distribute so as to satisfy simultaneously your obligations under this
    License and any other pertinent obligations, then as a consequence you
    may not distribute the Program at all.  For example, if a patent
    license would not permit royalty-free redistribution of the Program by
    all those who receive copies directly or indirectly through you, then
    the only way you could satisfy both it and this License would be to
    refrain entirely from distribution of the Program.
    
    If any portion of this section is held invalid or unenforceable under
    any particular circumstance, the balance of the section is intended to
    apply and the section as a whole is intended to apply in other
    circumstances.
    
    It is not the purpose of this section to induce you to infringe any
    patents or other property right claims or to contest validity of any
    such claims; this section has the sole purpose of protecting the
    integrity of the free software distribution system, which is
    implemented by public license practices.  Many people have made
    generous contributions to the wide range of software distributed
    through that system in reliance on consistent application of that
    system; it is up to the author/donor to decide if he or she is willing
    to distribute software through any other system and a licensee cannot
    impose that choice.
    
    This section is intended to make thoroughly clear what is believed to
    be a consequence of the rest of this License.
    
      8. If the distribution and/or use of the Program is restricted in
    certain countries either by patents or by copyrighted interfaces, the
    original copyright holder who places the Program under this License
    may add an explicit geographical distribution limitation excluding
    those countries, so that distribution is permitted only in or among
    countries not thus excluded.  In such case, this License incorporates
    the limitation as if written in the body of this License.
    
      9. The Free Software Foundation may publish revised and/or new versions
    of the General Public License from time to time.  Such new versions will
    be similar in spirit to the present version, but may differ in detail to
    address new problems or concerns.
    
    Each version is given a distinguishing version number.  If the Program
    specifies a version number of this License which applies to it and "any
    later version", you have the option of following the terms and conditions
    either of that version or of any later version published by the Free
    Software Foundation.  If the Program does not specify a version number of
    this License, you may choose any version ever published by the Free Software
    Foundation.
    
      10. If you wish to incorporate parts of the Program into other free
    programs whose distribution conditions are different, write to the author
    to ask for permission.  For software which is copyrighted by the Free
    Software Foundation, write to the Free Software Foundation; we sometimes
    make exceptions for this.  Our decision will be guided by the two goals
    of preserving the free status of all derivatives of our free software and
    of promoting the sharing and reuse of software generally.
    
    			    NO WARRANTY
    
      11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
    FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
    OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
    PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
    OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
    TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
    PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
    REPAIR OR CORRECTION.
    
      12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
    WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
    REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
    INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
    OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
    TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
    YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
    PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGES.
    
    		     END OF TERMS AND CONDITIONS
    -------------------------------------------------------------------------
    

    Visit original content creator repository
    https://github.com/mking2203/plugin.video.otrstream

  • bottom_radioplayer

    HTML5 Single / Multi Radio Player for Website Footers

    Description

    This HTML5 radio player offers a complete and customizable solution for integrating a sleek and responsive audio player directly into your web pages. With features like an audio visualizer, song history, synchronized lyrics, and social media integration, you can elevate your website’s audio experience.

    Key Features:

    • Audio playback with intuitive controls for play/pause, volume, and station switching.
    • Dynamic audio visualizer that reacts to the music in real time.
    • Station list with thumbnails and information.
    • Song history displaying recently played tracks.
    • Synchronized lyrics (automatic search via API).
    • Integrated social sharing for Facebook, Twitter, and WhatsApp.
    • Links to mobile applications (Android and iOS).
    • Integration with music information APIs to display real-time track data.

    Demo Screenshots

    Demo Screenshot

    Installation and Configuration

    1. Download the player files:

      • Download or clone this repository.
    2. Configure your radio stations:

      • Open the config.js file.
      • Edit the window.streams.stations variable and replace the example stations with your own.
      • For each station, fill in the information: name, hash, description, URLs for logo, album art, background cover, audio stream URL, social links, app links, etc.
      • Important: Make sure that the paths for images (logo, album, cover) are correct, considering the location of the config.js file on your website.
    3. Integrate the player into your page:

      • Copy the HTML code from the index.html file and paste it into the desired location on your page, usually in the footer.

    Advanced Customization

    • Images: Replace the images in the assets folder with your own.
    • Colors: Customize the player’s colors by editing the css/custom.css file.
    • Layout: Modify the player’s layout by editing the player.html file.
    • Functionality: Adapt the player’s behavior by editing the js/main.js file.

    Support and Contributions

    • If you have any questions or issues, please open an issue in the GitHub repository.
    • Contributions are welcome! Feel free to submit pull requests with improvements, bug fixes, or new features.
    Visit original content creator repository https://github.com/jailsonsb2/bottom_radioplayer