Skip to content

Instantly share code, notes, and snippets.

View tharindu-mathew's full-sized avatar

Tharindu Mathew tharindu-mathew

View GitHub Profile
@tharindu-mathew
tharindu-mathew / environment.yml
Created February 4, 2019 15:32
environment.yml file for setting up vid2vid through conda
name: vid2vid
channels:
- pytorch
- omgarcia
- conda-forge
- defaults
dependencies:
- blas=1.1=openblas
- bzip2=1.0.6=h14c3975_1002
- ca-certificates=2018.11.29=ha4d7672_0
@tharindu-mathew
tharindu-mathew / .bashrc
Created June 28, 2017 19:58
CUDA bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@tharindu-mathew
tharindu-mathew / .theanorc
Created June 12, 2017 19:51
Theanorc with gpu
[global]
cuda.root=/usr/local/cuda-8.0
device = cuda
floatX = float32
force_device = True
[gpuarray]
preallocate=0.8
[blas]
@tharindu-mathew
tharindu-mathew / .vimrc
Created April 20, 2017 19:05
Minimal C/C++ coding vimrc
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier/ Tharindu Mathew
"
" activates filetype detection
filetype plugin indent on
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
@tharindu-mathew
tharindu-mathew / MySecuredContext.java
Created June 5, 2012 17:23
Sample impl of HTTPContext
package org.example;
import org.apache.commons.codec.binary.Base64;
import org.osgi.service.http.HttpContext;
import org.wso2.carbon.bam.restapi.internal.Utils;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URL;