Skip to content

Instantly share code, notes, and snippets.

View .gitconfig
[user]
name = Emil Davtyan
email = emil2k@gmail.com
[alias]
new = log master..upstream/master
ff = pull --ff-only
stat = branch -v
@emil2k
emil2k / .vimrc
Last active Jun 17, 2017
My .vimrc file and color theme to put at .vim/colors/molokai.vim.
View .vimrc
" Personal Vim Configuration
" ==========================
"
" General plugins I use, some require compiling and setup :
"
" - Pathogen, https://github.com/tpope/vim-pathogen
" - Fugitive, https://github.com/tpope/vim-fugitive
" - YouCompleteMe, https://github.com/Valloric/YouCompleteMe
" - Tagbar, https://github.com/majutsushi/tagbar
" - Airline, https://github.com/bling/vim-airline
@emil2k
emil2k / Locator.java
Last active Oct 13, 2020
Android utility class for getting device location using various methods. Depends on `Connectivity` class found here: https://gist.github.com/emil2k/5130324
View Locator.java
/*
* Copyright (c) 2017 Emil Davtyan
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
@emil2k
emil2k / Connectivity.java
Last active Oct 15, 2020
Android utility class for checking device's network connectivity and speed.
View Connectivity.java
/*
* Copyright (c) 2017 Emil Davtyan
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
You can’t perform that action at this time.