- Create new repository
git init
- Add changes to Index
git add .
- Commit changes
git commit -m "Why?"
- Repository status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib-cov | |
*.seed | |
*.log | |
*.csv | |
*.dat | |
*.out | |
*.pid | |
*.gz | |
pids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bundle bundle = new Bundle(); | |
bundle.putString("fields", "picture.type(large),quotes,email,first_name,last_name,username"); | |
final Request request = new Request(ParseFacebookUtils.getSession(), | |
"me", bundle, HttpMethod.GET, new Request.Callback() { | |
@Override | |
public void onCompleted(Response response) { | |
GraphObject graphObject = response.getGraphObject(); | |
if (graphObject != null) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public byte[] getBitmapFromLayout(FrameLayout frameLayout){ | |
frameLayout.destroyDrawingCache(); | |
frameLayout.setDrawingCacheEnabled(true); | |
frameLayout.buildDrawingCache(); | |
Bitmap bitmap = frameLayout.getDrawingCache(); | |
ByteArrayOutputStream stream = new ByteArrayOutputStream(); | |
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream); | |
byte[] data = stream.toByteArray(); | |
return data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/https' | |
require 'json' | |
#-------------------------------------------------------------------------------- | |
# Configuration | |
#-------------------------------------------------------------------------------- | |
configuration = { | |
:uri => 'https://fabric.io', | |
:credentials => { | |
:username => '', |