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
using System; | |
using System.Windows.Forms; | |
namespace SerialTest | |
{ | |
public partial class CallForm : Form | |
{ | |
public CallForm() | |
{ | |
InitializeComponent(); |
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
# ver 0.1 | |
# バックグラウンドへ回った時でもProgressDialogが動作するバージョン | |
# ただし、端末を回転させると、うまく動作しない | |
# ver 0.2 | |
# 端末を回転させても動作する | |
# ただし、ProgressDialogが表示されている時に回転させると、うまく動作しない | |
# ver 0.3 | |
# ProgressDialogが表示されている時に回転させても動作する |
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
require 'ruboto/widget' | |
require 'ruboto/util/toast' | |
ruboto_import_widgets :Button, :LinearLayout, :TextView | |
java_import 'android.os.AsyncTask' | |
# Thread.sleepを使いたいため追加 | |
java_import 'java.lang.Thread' | |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<manifest package='com.example.nfc_read' android:versionCode='1' android:versionName='1.0' xmlns:android='http://schemas.android.com/apk/res/android'> | |
<application android:hardwareAccelerated='true' android:icon='@drawable/ic_launcher' android:label='@string/app_name' android:largeHeap='true'> | |
<activity android:label='@string/app_name' android:name='NfcReadActivity'> | |
<intent-filter> | |
<action android:name='android.intent.action.MAIN'/> | |
<category android:name='android.intent.category.LAUNCHER'/> | |
</intent-filter> | |
<!-- intent-filterの追加 ここから --> |
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
# encoding: utf-8 | |
require 'ruboto/widget' | |
require 'ruboto/util/toast' | |
ruboto_import_widgets :Button, :LinearLayout, :TextView | |
java_import 'android.util.Log' | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" > | |
<TextView android:id="@+id/textView1" | |
android:text="Fragment A" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"/> |
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
function doGet() { | |
var rss = makeRss(); | |
rss.setTitle('RSS 2.0 test'); | |
rss.setLink('http://example.com'); | |
rss.setDescription('RSS 2.0のテスト'); | |
rss.setLanguage('ja'); | |
rss.setAtomlink('http://example.com/rss'); | |
for (var i = 1; i < 3; i++){ |
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
require 'ruboto/widget' | |
ruboto_import_widgets :LinearLayout, :TextView | |
java_import 'android.content.Context' | |
java_import 'android.location.LocationManager' | |
class NmeaActivity | |
def onCreate(bundle) |
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
// グループ化されたオブジェクトを新レイヤーへ複数回コピー・配置する | |
// 方法) 列方向に、ひとつの元絵をコピー・グループ化したあと、行方向に、そのグループをコピーする | |
(function(){ | |
const ROW_COUNT = 11; | |
const COLUMN_COUNT = 4; | |
const SPACE_LEFT_MM = 7.4; | |
const SPACE_LEFT_PT = toPT(SPACE_LEFT_MM) | |
const A4_HEIGHT_MM = 297; |