Skip to content

Instantly share code, notes, and snippets.

@maksha
maksha / installing-node-with-nvm.md
Last active September 23, 2020 09:57 — forked from d2s/installing-node-with-nvm.md
Installing Node.js for Linux & macOS with nvm
@maksha
maksha / PowerShell_profile.ps1
Last active July 25, 2017 07:48
Posh-Git PowerShell Prompt
# Import module posh-git
Import-Module -Name posh-git
# Setup awesome PS prompt
function Test-Administrator {
$user = [Security.Principal.WindowsIdentity]::GetCurrent();
(New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync
@maksha
maksha / RetrofitAndroid.java
Last active August 29, 2015 13:57
Retrofit Android test.
package com.retrofit.android.test;
import java.util.List;
import javax.inject.Named;
import org.apache.http.impl.client.DefaultHttpClient;
import com.google.gson.Gson;
import retrofit.http.GET;
import retrofit.http.GsonConverter;
import retrofit.http.RestAdapter;
import retrofit.http.Server;