Skip to content

Instantly share code, notes, and snippets.

Avatar

Yuta Watanabe YutaWatanabe

  • Civitas, Inc.
  • Tokyo, Japan
View GitHub Profile
View App.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace CdonApp
{
public class App : Application
View Program.cs
public partial class Program
{
void ProgramStarted()
{
Debug.Print("Program Started");
button.ButtonPressed += button_ButtonPressed;
}
void button_ButtonPressed(Button sender, Button.ButtonState state)
View CdonPage.xaml.cs
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
View CdonPage.xaml
<?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 Nov 12, 2014
XAML code of AdMediatorControl
View AdMediatorControlXaml.xaml
<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 Aug 29, 2015
Debugging AdMediator
View MainPage.xaml.cs
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 Oct 20, 2014
Bootstrap 3 Snippets: bs3-col:6
View bs3-snippet.html
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
</div>
@YutaWatanabe
YutaWatanabe / condition.cs
Last active Aug 29, 2015
Condition statement in Unity debugging
View condition.cs
this.score.score > 300
@YutaWatanabe
YutaWatanabe / enemy-part.cs
Created Oct 15, 2014
Part of Enemy.cs in 2D Platformer ( Unity )
View enemy-part.cs
// Increase the score by 100 points
score.score += 100;
@YutaWatanabe
YutaWatanabe / audio.js
Created Oct 12, 2014
play audio in phonegap
View audio.js
document.getElementById("playBtn")
.addEventListener("click", function(){
var media = new Media(
"/android_asset/www/sample.mp3",
function(){
console.log("success");
},
function(err){
console.log("fail");
}