Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# Usage: tweetsplit.rb < tweetstorm.txt
# https://twitter.com/CoralineAda/status/869204799027372032
# Sam Stephenson / 2017-05-29
# Tweet-sized version:
# puts $<.read.split(/\s+/).reduce(nil){|(*cs,c),w|n=[c,w].compact*" ";cs+(n.size>140?[c,w]:[n])}*"\n"
def chunks_for(words, chunk_size)
@ryo-ARAKI
ryo-ARAKI / starship.toml
Last active November 15, 2025 00:46
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = ""
[[battery.display]]
threshold = 30
style = "bold red"
@mendoza
mendoza / README.md
Created January 10, 2020 06:43
Just a quick README template

[Repo name] made with ❤️,☕ and some 🍺

[here we add the necesary badges, here are the ones I say we always need]

License Issues forks stars size

[short description of the repo]

this app is made for myself