This file contains hidden or 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
Intent sendIntent = new Intent(Intent.ACTION_SEND); | |
sendIntent.setType("image/png"); //or "message/rfc822" | |
ContentResolver cr = getContentResolver(); | |
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(status.url)); | |
String postfix = (status.recognized()) ? "success" : "failure"; | |
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Captured images: " + postfix); | |
sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "[email protected]" }); | |
startActivity(Intent.createChooser(sendIntent, "Send images")); |
This file contains hidden or 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
#!/usr/local/bin/python3.0 | |
import os | |
import re | |
def skip_updated(input): | |
for line in input: | |
if not_updated_regexp.match(line): | |
return |
This file contains hidden or 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
#!/bin/bash | |
USAGE="usage: git-gc-all [repositories_directory]" | |
if [[ -z $1 ]]; then | |
wd=`pwd` | |
elif [[ $1 == "--help" ]]; then | |
echo "runs git-gc in each subdirectory of current directory." | |
echo $USAGE | |
exit |
NewerOlder