summary refs log tree commit diff
path: root/home/.local/bin/wiki
blob: c430809816ab53092fbbb0fa26efdd7032b99750 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
set -eu

curl -Gs 'https://en.wikipedia.org/w/api.php' \
    -d 'action=opensearch' --data-urlencode "search=$1" \
    | jq -r '.[2][]' \
    | sed -En "s/^([^ ]| [^i]| i[^s]| is[^ ])* is /It's not a $1, what we need is /p"
674e7f1a34adfede8b7c575e5fccf6bccf4bcd0&follow=1'>Simplify bit lexing and parsingJune McEnroe 2020-12-31Add ddateJune McEnroe 2020-12-30Print octal for 8 bits in bitJune McEnroe 2020-12-30Add unary & to bitJune McEnroe 2020-12-30Support unary + in orderJune McEnroe 2020-12-30Add postfix $ operator to bitJune McEnroe 2020-12-29Add make lexerJune McEnroe 2020-12-29Clean up C lexerJune McEnroe 2020-12-29Clean up hilex code somewhatJune McEnroe 2020-12-29Match lex/yacc %% %{ %} lines as MacroJune McEnroe 2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe 2020-12-29Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe 2020-12-29Add hilex HTML outputJune McEnroe