Skip to content

Instantly share code, notes, and snippets.

@muru
muru / papers-with-code-to-list.sh
Last active March 30, 2019 07:53
A script to take links to Papers with Code, and save the link to abstract, title and year
#! /bin/bash
TYPE=PAPER
TAG1=PAPER
TAG2=NLP
TAG3=LANGUAGE_MODELING
trap 'rm -f foo.html' EXIT
while read -r url
do
echo "$url" >> log
curl -sL "$url" > foo.html
@muru
muru / stylish.json
Last active December 13, 2019 03:49
[
{
"installDate": 1530679972915,
"name": "SE Top Bar uniformity",
"enabled": true,
"sections": [
{
"code": "#custom-header, .-container .-main .-logo, .-ctas {\n /* Nuke the Ubuntu custom top bar, the SE logo and the \"join\" button */\n \n display: none;\n}\n\n#search {\n padding-left: 0;\n}\n\n.js-top-bar {\n /* Keep the top bar on top */\n \n width: 100%;\n position: sticky;\n background-color: #3f3f3f !important;\n}\n\n.top-bar~.container {\n /* Remove the extra padding for the site header */\n \n margin-top: 0;\n}\n\n.top-bar .my-profile .-rep {\n font-weight: normal;\n}",
"urls": [],
"urlPrefixes": [],
@muru
muru / tex.tags
Last active May 3, 2016 09:58
YCM + LaTeX symbols
a4paper tags /a4paper/;" language:tex
a5paper tags /a5paper/;" language:tex
aa tags /aa/;" language:tex
AA tags /AA/;" language:tex
abbrv tags /abbrv/;" language:tex
abovedisplayshortskip tags /abovedisplayshortskip/;" language:tex
abovedisplayskip tags /abovedisplayskip/;" language:tex
abstract tags /abstract/;" language:tex
abstractname tags /abstractname/;" language:tex
acute tags /acute/;" language:tex
while true
do
clear
size=$(ls -l /var/spool | wc -c)
sleep 30
newsize=$(ls -l /var/spool | wc -c)
if (( $size < $newsize ))
then
echo "You've got mail!"
else
$ (strace yes | read -n1) |& tail
close(3) = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe68a772000
write(1, "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"..., 4096) = 4096
write(1, "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"..., 4096) = 4096
write(1, "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"..., 4096) = 4096
write(1, "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"..., 4096) = 4096
write(1, "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"..., 4096) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=24310, si_uid=1000} ---