Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Gruppi
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Gruppi
Skin
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Nessuna skin)
  • Nessuna skin
Collassa

Piero Bosio Web Site

Forum federato con il resto del mondo. Non contano le istanze, contano le persone

  1. Home
  2. Categorie
  3. Senza categoria
  4. @pixx @egallager we golfin'

@pixx @egallager we golfin'

Pianificato Fissato Bloccato Spostato Senza categoria
4 Post 2 Autori 0 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Piรน Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione รจ stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Questo utente รจ esterno a questo forum
    Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Questo utente รจ esterno a questo forum
    Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰
    scritto su ultima modifica di
    #1

    @pixx @egallager we golfin'?

    seq 26 |xargs -I{} sh -c 'printf "\x$(printf %x $(({} + 96)))\n"'

    Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined 1 Risposta Ultima Risposta
    • Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰

      @pixx @egallager we golfin'?

      seq 26 |xargs -I{} sh -c 'printf "\x$(printf %x $(({} + 96)))\n"'

      Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Questo utente รจ esterno a questo forum
      Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Questo utente รจ esterno a questo forum
      Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰
      scritto su ultima modifica di
      #2

      @pixx @egallager oh, wait, we can awk to save a few more chars. This is almost not terrible, and it does not require bash. It works in every shell I tested (csh and dash, which is a minimalist mostly POSIX shell, in addition to bash), while the nice `echo {a..z}` only works in bash.

      seq 26 | awk '{ printf "%c\n", $1 + 96 }'

      pixxundefined 1 Risposta Ultima Risposta
      • Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰

        @pixx @egallager oh, wait, we can awk to save a few more chars. This is almost not terrible, and it does not require bash. It works in every shell I tested (csh and dash, which is a minimalist mostly POSIX shell, in addition to bash), while the nice `echo {a..z}` only works in bash.

        seq 26 | awk '{ printf "%c\n", $1 + 96 }'

        pixxundefined Questo utente รจ esterno a questo forum
        pixxundefined Questo utente รจ esterno a questo forum
        pixx
        scritto su ultima modifica di
        #3

        @swelljoe @egallager

        yea, that's better. Realized bash printf was garbage, forgot awk's is good ๐Ÿ™‚

        Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined 1 Risposta Ultima Risposta
        • pixxundefined pixx

          @swelljoe @egallager

          yea, that's better. Realized bash printf was garbage, forgot awk's is good ๐Ÿ™‚

          Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Questo utente รจ esterno a questo forum
          Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰undefined Questo utente รจ esterno a questo forum
          Joe Cooper ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‰
          scritto su ultima modifica di
          #4

          @pixx @egallager yeah, I was cussing about bash printf the whole time. But, I cuss about it all the time because you can't pipe to it without xargs, as well.

          1 Risposta Ultima Risposta
          Rispondi
          • Topic risposta
          Effettua l'accesso per rispondere
          • Da Vecchi a Nuovi
          • Da Nuovi a Vecchi
          • Piรน Voti


          Gli ultimi otto messaggi ricevuti dalla Federazione
          • Maj - ๐Ÿ‡จ๐Ÿ‡ฆundefined
            Maj - ๐Ÿ‡จ๐Ÿ‡ฆ

            Hey! Pssst. Yeah, you!
            The outside is full of trees and sunshine!
            Pass it on!

            per saperne di piรน

          • Pelosettoundefined
            Pelosetto

            Lo spazio italiano punta a un ruolo di primo piano in Europa

            @scienza (HASHTAG)

            Bene i rapporti con la Nasa, collaborazioni scientifiche incerte

            per saperne di piรน

          • Evan Prodromouundefined
            Evan Prodromou

            @noondlyt so delicious

            per saperne di piรน

          • LAURENundefined
            LAUREN

            Muting words is my drug of choice tonight

            per saperne di piรน

          • Evan Prodromouundefined
            Evan Prodromou

            @davew in wiki world we talk about the "WikiNow". This kind of timeless way that we can interact across days and decades. I love seeing it in blogs, too.

            http://meatballwiki.org/wiki/WikiNow

            per saperne di piรน

          • McSweeney'sundefined
            McSweeney's

            "As if the dancing werenโ€™t enough, when my kids yell 'HEAVY,' Iโ€™m expected to pantomime that whatever Iโ€™m holding is unbearably heavy. That works fine with a pen. Itโ€™s even manageable with a cup of hot coffee. But when holding your best friendโ€™s newborn?"
            https://www.mcsweeneys.net/articles/an-open-letter-to-blueys-parents-please-stop

            per saperne di piรน

          • L'Anarchiversitarioundefined
            L'Anarchiversitario

            Francia: proseguono anche oggi le iniziative del movimento โ€œblocchiamo tuttoโ€. 339 le persone ancora in stato di fermo
            @anarchia
            Polizia in massa allโ€™alba per sgomberare Sciences Po, il celebre ateneo di Parigi, nel quadro del movimento โ€˜Bloquons toutโ€™. Bloccato anche lโ€™accesso allโ€™Universitรฉ Paris Citรฉ e a un sito del colosso https://www.rivoluzioneanarchica.it/francia-proseguono-anche-oggi-le-iniziative-del-movimento-blocchiamo-tutto-339-le-persone-ancora-in-stato-di-fermo/

            per saperne di piรน

          • Evan Prodromouundefined
            Evan Prodromou

            #ActivityInThePub

            per saperne di piรน
          • Accedi

          • Accedi o registrati per effettuare la ricerca.
          Powered by NodeBB Contributors
          • Primo post
            Ultimo post