Skip to content

Instantly share code, notes, and snippets.

View LBlend's full-sized avatar
🦀
snake -> crab

Leander Furumo LBlend

🦀
snake -> crab
View GitHub Profile
@marksverdhei
marksverdhei / train_t5_define.py
Last active April 5, 2022 00:36
Fine-tune T5 on word definition, using transformers Trainer API
from typing import Any, Dict
import numpy as np
import pandas as pd
from datasets import load_dataset
from torch.utils.data import Dataset
from transformers import (
set_seed,
Seq2SeqTrainer,
Seq2SeqTrainingArguments,
@AbstractUmbra
AbstractUmbra / 00-deprecation.md
Last active May 23, 2024 12:29
discord.py 2.0+ slash command info and examples

This gist has now been 'deprecated' and has moved...

... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.

@suhdonghwi
suhdonghwi / main.py
Created April 6, 2020 11:42
Analyzing a paradigm relationship between programming languages by parsing wikipedia documents
import requests
from bs4 import BeautifulSoup
import re
import graph_tool.all as gt
def get_html_content(url):
r = requests.get(url)
return r.text
inf_by_regex = re.compile('Influenced by')
@bradtraversy
bradtraversy / docker-help.md
Last active May 15, 2024 05:31
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@chloechantelle
chloechantelle / userChrome.css
Created June 22, 2018 10:02
Hidden Navigation userChrome CSS
/*
Firefox 58+ (Quantum) very minimal browser theme
Hides the navigation bar until you hover over the tabs
Heavily inspired by Vivaldi's UI
Only really need to edit the hex colors in :root
Originally from my Nocturnal CSS: https://gist.github.com/chloechantelle/7d58ff31121378cec2ab593ac90c64b8
Should look like: https://i.imgur.com/ASOaXqZ.png
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">