create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion "20.0.0" | |
defaultConfig { | |
applicationId "com.isil.am1lesson4" | |
minSdkVersion 11 | |
targetSdkVersion 19 |
public static float convertPixelsToDp(float px){ | |
DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics(); | |
float dp = px / (metrics.densityDpi / 160f); | |
return Math.round(dp); | |
} | |
public static float convertDpToPixel(float dp){ | |
DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics(); | |
float px = dp * (metrics.densityDpi / 160f); | |
return Math.round(px); |
public class StringExample { | |
public static void main(String[] args) { | |
String originalURL= "/group/{id}/users"; | |
Object object= "x1024"; | |
String annotation= "id"; | |
if(originalURL.contains("{"+annotation+"}")) | |
{ |
rviProveedores.setHasFixedSize(true); | |
rviProveedores.addItemDecoration(new MarginDecoration(this)); | |
rviProveedores.setLayoutManager(new LinearLayoutManager(this)); | |
rviProveedores.addOnItemTouchListener(new RecyclerTouchListener(this, rviProveedores, new RecyclerClickListener() { | |
@Override | |
public void onClick(View view, int position) { | |
if (placeEntityList != null) { | |
PlaceEntity placeEntity = placeEntityList.get(position); | |
LogUtils.v(TAG, "placeEntity "+placeEntity); |
Bundle bundle = new Bundle(); | |
bundle.putInt("limit", 5000); | |
String path= "/me/taggable_friends"; | |
new GraphRequest( | |
AccessToken.getCurrentAccessToken(), | |
path, | |
bundle, | |
HttpMethod.GET, | |
new GraphRequest.Callback() { |
Calendar c1 = Calendar.getInstance(); | |
//first day of week | |
c1.set(Calendar.DAY_OF_WEEK, 1); | |
int year1 = c1.get(Calendar.YEAR); | |
int month1 = c1.get(Calendar.MONTH)+1; | |
int day1 = c1.get(Calendar.DAY_OF_MONTH); | |
//last day of week |
git rm -rf .git | |
git init | |
git remote add origin https://github.com/heiswayi/myproject.git | |
git remote -v | |
git add --all | |
git commit -am "Initial commit" |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
defaults write com.apple.finder AppleShowAllFiles YES | |
killall Finder | |
defaults write com.apple.finder AppleShowAllFiles NO | |
killall Finder |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
compile 'com.google.code.gson:gson:2.6.2' | |
compile 'com.squareup.retrofit2:retrofit:2.0.2' | |
compile 'com.squareup.okhttp3:okhttp:3.2.0' | |
} |