For not logging out on lid closing, open /etc/systemd/logind.conf
and add or modify:
HandleLidSwitch=ignore
To disable Fn + Esc functionality add or modify the following to the same file:
HandlePowerKey=ignore
#!/usr/bin/env python | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# Set matplotlib style | |
plt.style.use("tableau-colorblind10") | |
plt.rcParams.update( | |
{ | |
"axes.grid": True, | |
"axes.titleweight": "bold", |
#!/usr/bin/env python | |
import time | |
import torch | |
class PerfTimer: | |
"""A timer for measuring performance using a high-resolution monotonic clock.""" | |
def __init__(self, desc: str = "") -> None: |
venue | title | url | |
---|---|---|---|
ACL 2022 | Problems with Cosine as a Measure of Embedding Similarity for High Frequency Words | https://aclanthology.org/2022.acl-short.45/ | |
ACL 2022 | Translation between Molecules and Natural Language | https://aclanthology.org/2022.emnlp-main.26/ | |
ICLR 2015 | Adam: A Method for Stochastic Optimization | https://arxiv.org/abs/1412.6980 | |
ICLR 2019 | Decoupled Weight Decay Regularization | https://arxiv.org/abs/1711.05101 | |
Nature 2022 | Language models can learn complex molecular distributions | https://www.nature.com/articles/s41467-022-30839-x | |
Nature 2023 | Foundation models for generalist medical artificial intelligence | https://www.nature.com/articles/s41586-023-05881-4 |
#!/usr/bin/env sh | |
wget -O nixos.iso -nc https://channels.nixos.org/nixos-23.05/latest-nixos-gnome-x86_64-linux.iso | |
qemu-img create -f qcow2 nixos.img 32G | |
qemu-system-x86_64 -enable-kvm -m 8G -boot d -cdrom nixos.iso -hda nixos.img | |
qemu-system-x86_64 -enable-kvm -m 8G -boot a -hda nixos.img |
For not logging out on lid closing, open /etc/systemd/logind.conf
and add or modify:
HandleLidSwitch=ignore
To disable Fn + Esc functionality add or modify the following to the same file:
HandlePowerKey=ignore
import pandas as pd | |
def n_way_k_shot(path: str, num_samples: int, label_col: str, random_state: int = 0) -> tuple: | |
"""N-way-K-shot train/test split for Few-Shot Learning (FSL).""" | |
df = pd.read_csv(path) | |
fn = lambda lg: lg.sample(num_samples, random_state=random_state) | |
df_train = df.groupby(label_col, group_keys=False).apply(fn) |
// USAGE: `go run arxiv.go "Depth-wise Separable Convolution"` | |
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
"github.com/gocolly/colly" |
#include <stdio.h> | |
#include <stdlib.h> | |
#define ABS(x) (x < 0) ? -x : x | |
#define EVEN(x) x % 2 == 0 | |
#define ODD(x) x % 2 == 1 | |
#define MAX(x, y) x < y ? y : x | |
#define MIN(x, y) x < y ? x : y |
--- | |
# Indentation | |
ContinuationIndentWidth: 4 | |
IndentCaseLabels: true | |
IndentWidth: 4 | |
NamespaceIndentation: None | |
TabWidth: 4 | |
UseTab: Never | |
# Comments and sorting |