Skip to content

Instantly share code, notes, and snippets.

View raffaem's full-sized avatar

Raffaele Mancuso raffaem

View GitHub Profile
### Keybase proof
I hereby claim:
* I am raffaem on github.
* I am raffaem (https://keybase.io/raffaem) on keybase.
* I have a public key whose fingerprint is 6091 FC09 206B 9910 4866 518D EFF9 F5A4 2902 A8C0
To claim this, I am signing this object:
@raffaem
raffaem / instructions.md
Created June 4, 2024 07:06 — forked from morrolinux/instructions.md
FIrefox - Vertical tab bar with auto hide

What to expect

Graphical aspect may vary depending on your choices in following the instructions below, but the end result should look something like this:

immagine

Enable Firefox features

@raffaem
raffaem / README
Last active May 25, 2024 00:07
Waybar module to record screen
Left mouse button to record entire screen, right mouse button to record a region.
Requires [wf-recorder](https://github.com/ammen99/wf-recorder).
#!/usr/bin/env python3
import sys
import re
with open(sys.argv[1], "r", encoding="utf8") as fh:
data = fh.read()
s = re.search(r"^(DTSTART:\d{8}T\d{6})$", data, re.MULTILINE).group(1)
data = data.replace(s, s+"Z")
@raffaem
raffaem / download_glue_data.py
Created September 14, 2021 14:09
Download GLUE data
''' Script for downloading all GLUE data.
Note: for legal reasons, we are unable to host MRPC.
You can either use the version hosted by the SentEval team, which is already tokenized,
or you can download the original data from (https://download.microsoft.com/download/D/4/6/D46FF87A-F6B9-4252-AA8B-3604ED519838/MSRParaphraseCorpus.msi) and extract the data from it manually.
For Windows users, you can run the .msi file. For Mac and Linux users, consider an external library such as 'cabextract' (see below for an example).
You should then rename and place specific files in a folder (see below for an example).
mkdir MRPC
cabextract MSRParaphraseCorpus.msi -d MRPC