Skip to content

Instantly share code, notes, and snippets.

View YutaWatanabe's full-sized avatar

Yuta Watanabe YutaWatanabe

  • Civitas, Inc.
  • Tokyo, Japan
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace CdonApp
{
public class App : Application
@YutaWatanabe
YutaWatanabe / Program.cs
Created December 3, 2014 03:52
LED Blink Once
public partial class Program
{
void ProgramStarted()
{
Debug.Print("Program Started");
button.ButtonPressed += button_ButtonPressed;
}
void button_ButtonPressed(Button sender, Button.ButtonState state)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace CdonApp
{
public partial class CdonPage : ContentPage
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CdonApp.CdonPage"
Padding="0, 30, 0, 0"
BackgroundColor="#5F328F">
<ContentPage.Content>
<StackLayout>
<Image Source="cdonwhite.png"></Image>
@YutaWatanabe
YutaWatanabe / AdMediatorControlXaml.xaml
Created November 12, 2014 23:27
XAML code of AdMediatorControl
<WindowsPhone81:AdMediatorControl
x:Name="AdMediator_Block"
HorizontalAlignment="Left"
Height="66"
Id="AdMediator-Id-unique-id-is-here"
Margin="0,100,0,0"
VerticalAlignment="Top"
Width="400"/>
@YutaWatanabe
YutaWatanabe / MainPage.xaml.cs
Last active August 29, 2015 14:09
Debugging AdMediator
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Phone8AppWithMediation.Resources;
@YutaWatanabe
YutaWatanabe / bs3-snippet.html
Created October 20, 2014 13:57
Bootstrap 3 Snippets: bs3-col:6
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
</div>
@YutaWatanabe
YutaWatanabe / condition.cs
Last active August 29, 2015 14:07
Condition statement in Unity debugging
this.score.score > 300
@YutaWatanabe
YutaWatanabe / enemy-part.cs
Created October 15, 2014 07:17
Part of Enemy.cs in 2D Platformer ( Unity )
// Increase the score by 100 points
score.score += 100;
@YutaWatanabe
YutaWatanabe / audio.js
Created October 12, 2014 08:32
play audio in phonegap
document.getElementById("playBtn")
.addEventListener("click", function(){
var media = new Media(
"/android_asset/www/sample.mp3",
function(){
console.log("success");
},
function(err){
console.log("fail");
}