Skip to content

Instantly share code, notes, and snippets.

@remorsecs
remorsecs / clean-up-boot-partition-ubuntu.md
Created November 3, 2020 04:12 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@remorsecs
remorsecs / c++Template.cpp
Created September 27, 2020 03:58 — forked from kodekracker/c++Template.cpp
Basic C++ Template for Competitive Programming
/*
* Note: This template uses some c++11 functions , so you have to compile it with c++11 flag.
* Example:- $ g++ -std=c++11 c++Template.cpp
*
* Author : Akshay Pratap Singh
* Handle: code_crack_01
*
*/
/******** All Required Header Files ********/
.range : range(...)
ANY → range($expr$)
@remorsecs
remorsecs / actionlist.vim
Created May 21, 2020 05:09 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@remorsecs
remorsecs / .ideavimrc
Last active February 15, 2021 21:44
.ideavimrc settings for PyCharm IdeaVim plugin
nmap zf :action ReformatCode<CR>
imap zf <Esc>:action ReformatCode<CR>
nmap zh ^
nmap zl $
nmap z; A:
nmap zz
nmap <BS> a<BS>
nmap zrr :action CreateRunConfiguration<CR>
@remorsecs
remorsecs / VAE.ipynb
Last active August 1, 2018 05:09
PyTorch Implementation of Variational Autoencoder (VAE) on MNIST Dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@remorsecs
remorsecs / hw1.py
Created April 1, 2018 11:27
just for fun
import numpy as np
from pathlib import Path
from PIL import Image
from tqdm import tqdm
def transforms(image_path):
image = Image.open(str(image_path)).convert('L')
image = np.array(image, dtype=float)
image = np.resize(image, (192, 168))
@remorsecs
remorsecs / PyTorch 入門最速傳說.ipynb
Last active March 12, 2024 11:41
本文目標是讓沒寫過 PyTorch 的讀者成為 PyTorch 新手 (?)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@remorsecs
remorsecs / create-conda-environment-examples.md
Last active April 26, 2022 18:53
How to create conda environment

Create and Activate Conda Environment

Create and Activate Conda Environment-1

Create

$ conda create -p /path/to/your/environment --python=3.6