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
/home/lenam/Projects/Website/test_rails/app/views/home/index.html.haml:24: syntax error, unexpected end-of-input, expecting keyword_end: | |
actionpack (3.2.12) lib/action_view/template.rb:297:in `' | |
actionpack (3.2.12) lib/action_view/template.rb:297:in `module_eval' | |
actionpack (3.2.12) lib/action_view/template.rb:297:in `compile' | |
actionpack (3.2.12) lib/action_view/template.rb:244:in `block in compile!' | |
actionpack (3.2.12) lib/action_view/template.rb:232:in `synchronize' | |
actionpack (3.2.12) lib/action_view/template.rb:232:in `compile!' | |
actionpack (3.2.12) lib/action_view/template.rb:144:in `block in render' | |
activesupport (3.2.12) lib/active_support/notifications.rb:125:in `instrument' | |
actionpack (3.2.12) lib/action_view/template.rb:143:in `render' |
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
HTTP_STATUS_CODES = { | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', | |
200 => 'OK', | |
201 => 'Created', | |
202 => 'Accepted', | |
203 => 'Non-Authoritative Information', | |
204 => 'No Content', | |
205 => 'Reset Content', |
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
Bitmap screenshot = Bitmap.createBitmap(_rootView.getWidth(), _rootView.getHeight(), Bitmap.Config.RGB_565); | |
_rootView.draw(new Canvas(screenshot)); | |
String path = Images.Media.insertImage(getContentResolver(), screenshot, "title", null); | |
Uri screenshotUri = Uri.parse(path); | |
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); | |
emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
emailIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); | |
emailIntent.setType("image/png"); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="rectangle" | |
android:dither="true"> | |
<corners android:radius="2dp"/> | |
<solid android:color="#ccc" /> |
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
# type "go filename" to open the file by default application | |
alias go='xdg-open' |
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
[Desktop Entry] | |
Name=Android Studio | |
Comment=IDE for Android development | |
Type=Application | |
Categories=Development;IDE; | |
Exec=/home/user/Downloads/android-studio/bin/studio.sh | |
Terminal=false | |
StartupNotify=true | |
Icon=/home/user/Downloads/android-studio/bin/idea.png | |
Name[en_US]=Android Studio |
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
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<data android:scheme="http"/> | |
</intent-filter> |
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 class HogeCipher { | |
private static final String keyString = "<your secret key>" | |
public static String encryptString(String ivString, String input) | |
throws | |
java.io.UnsupportedEncodingException, | |
NoSuchAlgorithmException, | |
NoSuchPaddingException, | |
InvalidKeyException, | |
InvalidAlgorithmParameterException, |
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 class MyParcelable implements Parcelable { | |
private int mData; | |
public int describeContents() { | |
return 0; | |
} | |
public void writeToParcel(Parcel out, int flags) { | |
out.writeInt(mData); | |
} |
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
// Add code to print out the key hash | |
try { | |
PackageInfo info = getPackageManager().getPackageInfo( | |
"yourpackage.name", | |
PackageManager.GET_SIGNATURES); | |
for (Signature signature : info.signatures) { | |
MessageDigest md = MessageDigest.getInstance("SHA"); | |
md.update(signature.toByteArray()); | |
Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); | |
} |
OlderNewer