Skip to content

Instantly share code, notes, and snippets.

View roytseng-tw's full-sized avatar

Roy roytseng-tw

View GitHub Profile
@roytseng-tw
roytseng-tw / rgb_ycbcr.py
Created August 29, 2017 01:59
JPEG version of rgb and ycbcr conversion
import scipy.misc
import numpy as np
import matplotlib.pyplot as plt
import torch
import torchvision.transforms as tf
import skimage
import skimage.color as skcolor
import skimage.io as skio
from PIL import Image
import cv2
@roytseng-tw
roytseng-tw / .vimrc
Last active March 29, 2016 08:49
vim setting file
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
@roytseng-tw
roytseng-tw / OpenWithSublimeText3.bat
Created October 14, 2015 06:28 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text Build 3083 x64\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f