Transformez vos extraits Awk en images que l’on a envie de partager, sans quitter votre Mac.
Awk one-liners are shared constantly and almost always as text, where the quoting gets mangled on the way.
Codeshot détecte Awk à partir du code que vous collez : aucun sélecteur de langage à se tromper. Voici le même extrait dans trois des 30 thèmes fournis, rendus avec les feuilles de style de l’app.
#!/usr/bin/awk -fBEGIN { FS = ","; printf("%-12s %s
", "THEME", "COUNT") }
{ counts[$1]++ }
END {
for (theme in counts)
printf("%-12s %d
", theme, counts[theme])
}
GitHub · sombre
#!/usr/bin/awk -fBEGIN { FS = ","; printf("%-12s %s
", "THEME", "COUNT") }
{ counts[$1]++ }
END {
for (theme in counts)
printf("%-12s %d
", theme, counts[theme])
}
Solarized · sombre
#!/usr/bin/awk -fBEGIN { FS = ","; printf("%-12s %s
", "THEME", "COUNT") }
{ counts[$1]++ }
END {
for (theme in counts)
printf("%-12s %d
", theme, counts[theme])
}
Tokyo Night · sombre
Choisir un thème pour Awk
If the snippet is a one-liner, put the plain text in the post as well. An awk program people have to retype from a picture will be retyped wrong.
Trouver la bonne taille
Laissez l’image suivre votre contenu ou fixez un rapport — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — puis exportez en 1×, 2× ou 3× pour qu’elle reste nette sur un écran retina. Copiez-la dans le presse-papiers avec ⌘⇧C ou enregistrez avec ⌘S.