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/bin/expect -f | |
| # http://stackoverflow.com/questions/28051969/tcl-expect-equivalent-of-bash-or-how-to-pass-arguments-to-spawned-process-in | |
| # usage: | |
| # sshpass.sh userpwd ssh user@192.168.1.100 'nohup sleep 30 </dev/null >/dev/null 2>&1 &' | |
| # sshpass.sh userpwd scp svn-auth-file.bak user@172.18.3.244:/home/user/svn-auth-file.bak | |
| set PWD [lindex $argv 0] | |
| set ARGS [lrange $argv 1 end] | |
| spawn {*}$ARGS | |
| expect "*password:*" |
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/sh | |
| [ -z "$DIR" ] && DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| SRC=http://192.168.1.100/svn | |
| cd $DIR | |
| repo=$1 | |
| echo repo=$repo | |
| FILE=file://$DIR/$repo | |
| INIT_OK=0 | |
| [ ! -d $repo ] && INIT_OK=1 && mkdir -p $repo && \ |
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
| void iterate(Context context, Uri uri) { | |
| Cursor c = null; | |
| try { | |
| final ContentResolver resolver = context.getContentResolver(); | |
| final String[] prjection = { BaseColumns._ID, PKG_NAME }; | |
| c = resolver.query(uri, prjection, null, null, null); | |
| final int pkgColumnId = 0; | |
| while(c.moveToNext()) { | |
| String pkgName = c.getString(imColumn); | |
| // TODO: do something |
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/bin/perl | |
| # | |
| # 16:32 2010/10/7 | |
| # Jonathan Tsai | |
| # Ver 1.12 | |
| # | |
| # 自動將 svn 訊息寫入 mantis 紀錄內 | |
| # | |
| # 參考 http://www.ichiayi.com/trywiki/tech/svnmantis 的說明方式 | |
| # 本 script 需配合: |
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/bin/perl | |
| # | |
| # 16:32 2010/10/7 | |
| # Jonathan Tsai | |
| # Ver 1.12 | |
| # | |
| # 自動將 svn 訊息寫入 mantis 紀錄內 | |
| # | |
| # 參考 http://www.ichiayi.com/trywiki/tech/svnmantis 的說明方式 | |
| # 本 script 需配合: |
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
| 入门 | |
| ========== | |
| [四大组件](http://developer.android.com/guide/components/fundamentals.html) | |
| [Life cycle from d.android.com](http://d.android.com/reference/android/app/Activity.html) | |
| [Life cycle from 'Hello Android'](http://media.pragprog.com/titles/eband3/concepts.pdf) | |
| [Life cycle image](https://github.com/xxv/android-lifecycle/blob/master/complete_android_fragment_lifecycle.png) | |
| [Context分类](http://www.doubleencore.com/2013/06/context/) | |
| [Intent]() | |
| [点9图](http://isux.tencent.com/android-ui-9-png.html) |
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
| --- | |
| layout: page | |
| title: "Search" | |
| #date: 2013-11-06 20:27 | |
| keywords: | |
| description: | |
| comments: false | |
| sharing: false | |
| footer: false | |
| #published: false |
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
| // http://pjq.me/wiki/doku.php?id=android:animation | |
| package me.pjq.imageutil; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Matrix; | |
| import android.graphics.Rect; |
NewerOlder