Takuo Kitame takuo

View nmagw.rb
1 2 3 4 5 6 7 8 9
 
# -*- coding: utf-8 -*-
require 'oauth'
require 'json'
require 'sinatra/base'
require 'net/http'
 
class NmaGw < Sinatra::Base
set :logging, true
View amazonlink.user.js
1 2 3 4 5 6 7 8 9 10
View vicron
1 2 3 4 5 6 7
function vicron () {
file=`mktemp`
crontab -l > $file
$EDITOR $file
crontab < $file
rm -f $file
}
View AndroidManifest.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jp.takuo.android.sharetoclipboard"
android:versionCode="1"
android:versionName="1.0" >
 
<uses-sdk android:minSdkVersion="4" />
 
<application
android:icon="@drawable/ic_launcher"
View AndroidManifest.xml
1 2 3 4 5 6 7 8 9 10
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:theme="@android:style/Theme.Translucent">
<activity
android:label="@string/activity_name"
android:name=".TweetLinkShare">
<intent-filter>
<action android:name="jp.r246.twicca.ACTION_SHOW_TWEET" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
View bcmdhd.cal
1 2 3 4 5 6 7 8 9 10
manfid=0x2d0
prodid=0x0532
vendid=0x14e4
devid=0x4360
boardtype=0x0532
boardrev=0x20
boardflags=0x10080201
 
nocrc=1
xtalfreq=37400
View fallback_fonts.xml
1 2 3 4 5 6 7
<familyset>
<family order="0">
<fileset>
<file>../../vendor/fonts/MTLmr3m.ttf</file>
</fileset>
</family>
</familyset>
View OAuthVerify.java
1 2 3 4 5 6 7 8 9
public class OAuthVerify extends Activity {
private static final String CONSUMER_KEY = "";
private static final String CONSUMER_SECRET = "";
private static final String CALLBACK_URL = "myoauthapp://oauthcallback/";
private Context mContext;
private WebView mWebView;
private Twitter mTwitter;
private RequestToken mRequestToken;
private AccessToken mAccessToken;
View MyActivity.java
1 2 3
public void onClick(View v) {
startService(new Intent(this, MyService.class));
}
View gist:1294791
1 2 3 4 5 6 7 8 9 10
public void onClick(View v) {
new DownloadImageTask().execute("http://example.com/image.png");
}
 
private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> {
/** The system calls this to perform work in a worker thread and
* delivers it the parameters given to AsyncTask.execute() */
protected Bitmap doInBackground(String... urls) {
return loadImageFromNetwork(urls[0]);
}
Something went wrong with that request. Please try again.