Skip to content

Instantly share code, notes, and snippets.

@konstantinkobs
konstantinkobs / dataset.py
Last active July 16, 2019 08:25
[Pytorch Ignite Skeleton] Template files for starting a Pytorch project with Ignite #pytorch #ignite #machinelearning #neuralnetworks
import torch
from torch.utils.data.dataset import Dataset
import torch.nn.functional as F
class MyDataset(Dataset):
def __init__(self, train=True):
if train:
self.data = list(range(80))
else:
@konstantinkobs
konstantinkobs / .phoenix.js
Last active May 22, 2019 06:18
[Phoenix config] The config file for the macOS window manager Phoenix. The file should be located in the home folder. #windowmanager #config
const mod1 = ['ctrl', 'alt', 'cmd']; // Moving and resizing windows
const mod2 = ['shift', 'ctrl', 'alt', 'cmd']; // Focusing windows
const numberOfScreens = Screen.all().length;
Phoenix.set({
// daemon: true,
openAtLogin: true
});