Mon Dec 29 19:53:08 PST 2014 Link
Keys | Description |
---|---|
Ctrl + a | Go to the beginning of the line (Home) |
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:interpolator="@android:anim/linear_interpolator"> | |
<scale | |
android:fromXScale="1.0" | |
android:toXScale="0.8" | |
android:fromYScale="1.0" | |
android:toYScale="1.2" | |
android:pivotX="50%" | |
android:pivotY="50%" |
package com.natebass.thefrag2; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.view.MenuItem; | |
/** |
/* | |
* From the Udacity course "Developing Android Applications" Lesson 2 | |
*/ | |
// These two need to be declared outside the try/catch | |
// so that they can be closed in the finally block. | |
HttpURLConnection urlConnection = null; | |
BufferedReader reader = null; | |
// Will contain the raw JSON response as a string. |
/* The date/time conversion code is going to be moved outside the asynctask later, | |
* so for convenience we're breaking it out into its own method now. | |
*/ | |
private String getReadableDateString(long time){ | |
// Because the API returns a unix timestamp (measured in seconds), | |
// it must be converted to milliseconds in order to be converted to valid date. | |
Date date = new Date(time * 1000); | |
SimpleDateFormat format = new SimpleDateFormat("E, MMM d"); | |
return format.format(date).toString(); |
package com.natebass.bouncingballs; | |
import android.animation.ValueAnimator; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.os.Bundle; |
package com.natebass.learn2draw; | |
import android.animation.Animator; | |
import android.animation.Keyframe; | |
import android.animation.PropertyValuesHolder; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.RadialGradient; |
// frame.jpg is 1000 x 120 of plain #3b3c37 | |
{ | |
"name": "Ubuntu", | |
"manifest_version": 2, | |
"version": "2.6", | |
"theme": { | |
"colors": { | |
"tab_text": [ 223, 219, 210 ], | |
"tab_background_text": [ 120, 127, 109 ], | |
"bookmark_text": [ 223, 219, 210 ], |
awk -F' ' ' | |
BEGIN { | |
FIRST_COL_LENGTH = 4; | |
SECOND_COL_LENGTH = 80; | |
THIRD_COL_LENGTH = 35; | |
printf("|%4s|%80s|%35s|\n", "Key", "Action", "Followed By") | |
printf("|") | |
for (i=0; i<FIRST_COL_LENGTH; i++) { | |
printf("-"); | |
} |
Mon Dec 29 19:53:08 PST 2014 Link
Keys | Description |
---|---|
Ctrl + a | Go to the beginning of the line (Home) |
Ctrl + Space | Basic code completion (the name of any class, method or variable) Ctrl + Shift + Space | Smart code completion (filters the list of methods and variables by expected type) Ctrl + Shift + Enter | Complete statement Ctrl + P | Parameter info (within method call arguments) Ctrl + Q | Quick documentation lookup Shift + F1 | External Doc Ctrl + mouse | over code Brief Info Ctrl + F1 | Show descriptions of error or warning at caret Alt + Insert | Generate code... (Getters, Setters, Constructors, hashCode/equals, toString) Ctrl + O | Override methods Ctrl + I | Implement methods