Skip to content

Instantly share code, notes, and snippets.

View emil2k's full-sized avatar

Emil Davtyan emil2k

View GitHub Profile
@emil2k
emil2k / .gitconfig
Last active November 6, 2015 02:42
[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 June 17, 2017 23:35
My .vimrc file and color theme to put at .vim/colors/molokai.vim.
" 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 April 29, 2022 04:25
Android utility class for getting device location using various methods. Depends on `Connectivity` class found here: https://gist.github.com/emil2k/5130324
/*
* 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 August 5, 2024 10:48
Android utility class for checking device's network connectivity and speed.
/*
* 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: