Magic words:
psql -U postgres
If run with -E
flag, it will describe the underlaying queries of the \
commands (cool for learning!).
Most \d
commands support additional param of __schema__.name__
and accept wildcards like *.*
package com.android.tutor; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.LinearGradient; | |
import android.graphics.Matrix; | |
import android.graphics.Paint; | |
import android.graphics.PixelFormat; | |
import android.graphics.PorterDuffXfermode; | |
import android.graphics.Rect; | |
import android.graphics.RectF; |
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
> | |
<ImageView | |
android:id="@+id/image01" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" |
package com.android.tutor; | |
import android.app.Activity; | |
import android.graphics.Bitmap; | |
import android.graphics.drawable.Drawable; | |
import android.os.Bundle; | |
import android.widget.ImageView; | |
public class Imagedemo extends Activity { | |
private ImageView mImageView01,mImageView02; | |
public void onCreate(Bundle savedInstanceState) { |
# Examples | |
cordova create myApp org.apache.cordova.myApp myApp | |
cordova plugin add cordova-plugin-camera --save | |
cordova platform add android --save | |
cordova requirements android | |
cordova build android --verbose | |
cordova run android | |
cordova build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey |
package singleton | |
import ( | |
"sync" | |
) | |
type singleton struct { | |
} | |
var instance *singleton |
type Dispatcher struct { | |
// A pool of workers channels that are registered with the dispatcher | |
WorkerPool chan chan Job | |
} | |
func NewDispatcher(maxWorkers int) *Dispatcher { | |
pool := make(chan chan Job, maxWorkers) | |
return &Dispatcher{WorkerPool: pool} | |
} |
var ( | |
MaxWorker = os.Getenv("MAX_WORKERS") | |
MaxQueue = os.Getenv("MAX_QUEUE") | |
) | |
// Job represents the job to be run | |
type Job struct { | |
Payload Payload | |
} |
dispatcher := NewDispatcher(MaxWorker) | |
dispatcher.Run() | |
var ( | |
MaxWorker = os.Getenv("MAX_WORKERS") | |
MaxQueue = os.Getenv("MAX_QUEUE") | |
) | |
// let's create a job with the payload | |
work := Job{Payload: payload} |