Skip to content

Instantly share code, notes, and snippets.

View mr1holmes's full-sized avatar

Chirag mr1holmes

  • IIT Bombay
  • Bangalore
View GitHub Profile
// get file reference
public File getOutputTextFile() {
File docStorageDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS), "myFolder");
if (!docStorageDir.exists()) {
if (!docStorageDir.mkdirs()) {
return null;
}
}
@mr1holmes
mr1holmes / vimrc
Last active September 2, 2019 10:32
" Use vim settings, don't worry about vi compatibility
set nocompatible
" Line numbers
set number
set relativenumber
" Tab and Indentation
set tabstop=4
set expandtab
set smarttab