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
final KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); | |
kpg.initialize(new RSAKeyGenParameterSpec(2048, RSAKeyGenParameterSpec.F4)); | |
Log.i("hamatz", "generating RSA key pair..."); | |
final long start = SystemClock.uptimeMillis(); | |
final KeyPair kp = kpg.generateKeyPair(); | |
final long end = SystemClock.uptimeMillis(); | |
Log.i("hamatz", "done: " + (end-start) + "ms."); | |
final RSAPrivateKey privkey = (RSAPrivateKey) kp.getPrivate(); | |
final RSAPublicKey pubkey = (RSAPublicKey) kp.getPublic(); |
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 で | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<data android:scheme="https" android:host="market.android.com"/> | |
</intent-filter> | |
*/ | |
protected void onResume() { |
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
Index: src/net/kazzz/felica/lib/FeliCaLib.java | |
=================================================================== | |
--- src/net/kazzz/felica/lib/FeliCaLib.java (リビジョン 37) | |
+++ src/net/kazzz/felica/lib/FeliCaLib.java (作業コピー) | |
@@ -256,7 +256,7 @@ | |
* @return byte[] このデータのバイト列表現を戻します | |
*/ | |
public byte[] getBytes() { | |
- ByteBuffer buff = ByteBuffer.allocate(this.length); | |
+ ByteBuffer buff = ByteBuffer.allocate(this.length & 0xFF); |
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
$ cd /data/data/com.skype.android.kddi/files | |
$ cat shared.xml | |
shared.xml: No such file or directory | |
$ cat ★skypeid★/main.db | |
★skypeid★/main.db: No such file or directory | |
$ |
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
#!/bin/sh | |
# 対象アプリのパッケージ名。 org.zakky.memopad とか | |
pkgname="$1" | |
# 対象アプリの apk。 bin/MemoPad.apk とか | |
apkpath="$2" | |
for i in $(adb devices |grep -v "List of devices" | awk '{print $1;}'); do adb -s $i shell pm uninstall -k "$pkgname"; adb -s $i install "$apkpath"; done |
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
package org.zakky.queue; | |
import android.app.Activity; | |
import android.graphics.Bitmap; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import java.util.List; |
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
(context.getResources().getConfiguration().screenLayout | |
& Configuration.SCREENLAYOUT_SIZE_MASK) | |
== Configuration.SCREENLAYOUT_SIZE_XLARGE |
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
# | |
# Automatically generated make config: don't edit | |
# Linux kernel version: 2.6.32.9 | |
# | |
CONFIG_ARM=y | |
CONFIG_SYS_SUPPORTS_APM_EMULATION=y | |
CONFIG_GENERIC_GPIO=y | |
CONFIG_GENERIC_TIME=y | |
CONFIG_GENERIC_CLOCKEVENTS=y | |
CONFIG_GENERIC_HARDIRQS=y |
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
package org.zakky.rpn; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.Stack; | |
public class Main { | |
public static void main(String[] args) throws Exception { | |
final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); |
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
package org.zakky.rpn; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.Stack; | |
import java.util.concurrent.TimeUnit; | |
public class Main { |