See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
SUBSYSTEMS=="usb", ATTRS{idVendor}=="", ATTRS{idProduct}=="", GROUP="cdrom", MODE="0666" |
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
fun primes(): Sequence<Long> { | |
var i = 0L | |
return sequence { | |
generateSequence { i++ } | |
.filter { n -> n > 1 && ((2 until n).none { i -> n % i == 0L }) } | |
.forEach { yield(it) } | |
} | |
} |
To play music at home, I use a Raspberry Pi and Shairport-sync to receive an Airplay stream and output via a pair of USB speakers.
I wanted to sample the audio stream, display an audio visualiser on the Display-o-Tron LCD display. Additionally I wanted to display the track info, which can be read from the metadata.
Using a bit of python magic, we can tie it all together...! Watch it all in action:
Command Flags
Flag | Options | Description |
---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
import java.text.Normalizer | |
object StringUtil { | |
fun slugify(word: String, replacement: String = "-") = Normalizer | |
.normalize(word, Normalizer.Form.NFD) | |
.replace("[^\\p{ASCII}]".toRegex(), "") | |
.replace("[^a-zA-Z0-9\\s]+".toRegex(), "").trim() | |
.replace("\\s+".toRegex(), replacement) | |
.toLowerCase() |
import java.security.SecureRandom; | |
import java.util.Base64; | |
import java.util.Base64.Encoder; | |
public class RandomWebToken | |
{ | |
public static void main(String[] args) | |
{ | |
SecureRandom random = new SecureRandom(); | |
byte bytes[] = new byte[128]; |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
#!/bin/bash | |
for FILE in * | |
do | |
if [ -f "$FILE" ];then | |
ID=`uuidgen` | |
EXTENSION=${FILE#*.} | |
mv -v "$FILE" "$ID"."$EXTENSION" | |
fi | |
done |