Skip to content

Instantly share code, notes, and snippets.

View 3t14's full-sized avatar

Michiru Tanaka 3t14

View GitHub Profile
@3t14
3t14 / MaruBatsu MainActivity.java
Created February 8, 2013 08:06
Simple Maru-Batsu Game (noughts-and-crosses) Code for an Android app
package com.dev_training.android.maru_batsu;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.Toast;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Web Project</title>
<style type="text/css">
td, th {
border: 1px solid skyblue;
border-bottom: 1px solid blue;
@3t14
3t14 / gist:4047910874d1e998a439c6cd3f3d8cfe
Last active January 21, 2017 01:05
ListView + Navigation + async + awaitの例
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace HelloListView
{
public class App : Application
@3t14
3t14 / HelloPCLStorage.cs
Created January 21, 2017 01:46
ローカルストレージに対する共通ファイルアクセス方法の例
using System;
using System.Threading.Tasks;
using PCLStorage;
using Xamarin.Forms;
namespace HelloPCLStorage
{
public class App : Application
{
private Entry usernameEntry;
@3t14
3t14 / HelloPCLStorage.cs
Created January 21, 2017 03:09
JSON対応版ローカルストレージアクセス(PCLStorage)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using Newtonsoft.Json;
using PCLStorage;
using Xamarin.Forms;
namespace HelloPCLStorage
{
using System;
using System.Diagnostics;
using Plugin.Geolocator;
using Xamarin.Forms;
namespace HelloGeoLocator
{
public class App : Application
{
using System;
using System.Threading.Tasks;
using Plugin.Geolocator;
using Xamarin.Forms;
using Xamarin.Forms.Maps;
namespace HelloMap
{
public class App : Application
{
using System;
using Plugin.Media;
using Xamarin.Forms;
namespace HelloCamera
{
public class App : Application
{
// 後の参照用
Image photoImage;
using System;
using Microsoft.ProjectOxford.Face;
using Plugin.Media;
using Xamarin.Forms;
namespace HelloFaceAPI
{
public class App : Application
{
// 後の参照用
@3t14
3t14 / HelloCamera.cs
Created January 28, 2017 07:47
拡張版
using System;
using Plugin.Media;
using Xamarin.Forms;
namespace HelloCamera
{
public class App : Application
{
Image photoImage;