Skip to content

Instantly share code, notes, and snippets.

View matt-coles's full-sized avatar

Matt Coles matt-coles

View GitHub Profile
@matt-coles
matt-coles / worldcupsummary.sh
Created June 27, 2018 22:15
Quick summary of the worldcup scores for an i3bar with jq
curl -s 'https://worldcup.sfg.io/matches/today' | jq -jr 'label $out | map(select(.status != "future")) | if (. | length) > 0 then . else break $out end | .[] | .home_team.code+" "+(.home_team.goals|tostring)+" - "+.away_team.code+" "+(.away_team.goals|tostring)+" | "' | sed 's/\(.*\) | /\1 /'

Keybase proof

I hereby claim:

  • I am matt-coles on github.
  • I am mattcoles (https://keybase.io/mattcoles) on keybase.
  • I have a public key ASBWsgQX1GrBGSv8ZjpujX508HouXclYhgbhPunlrKCbMAo

To claim this, I am signing this object:

data.map(function(n) {
return [moment(new Date(n[0])).format('hh:mm:ss')].concat(n.slice(1));
});
javascript:(function()%7B%24.getScript(%27https://raw.githack.com/Alpha-Atom/DubX-Script/master/beta.js%27)%3B%7D())%3B