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
@YutaWatanabe
YutaWatanabe / dstest.js
Created August 28, 2014 08:21
dynamic-scheme-test
var itemTable = client.getTable("Item");
itemTable.insert(
{text: "Sample Item", dynamic: true, date: "2014-08-28T12:00:00Z"}
);
@YutaWatanabe
YutaWatanabe / delete-item-ams.js
Created August 22, 2014 01:09
Delete the item in Azure Mobile Service
(function(){
// MobileServiceClient のインスタンスを作成
// URL, KEY は管理画面に表示されているものを貼り付け
var client = new WindowsAzure.MobileServiceClient(
"URL",
"KEY"
);
// Item テーブルのインスタンス取得
@YutaWatanabe
YutaWatanabe / update-item-with-ams.js
Created August 22, 2014 01:00
Update the created item in Azure Mobile Service
(function(){
// MobileServiceClient のインスタンスを作成
// URL, KEY は管理画面に表示されているものを貼り付け
var client = new WindowsAzure.MobileServiceClient(
"URL",
"KEY"
);
// Item テーブルのインスタンス取得
@YutaWatanabe
YutaWatanabe / create-read-mobile-service.js
Created August 22, 2014 00:34
Create and read items with Azure Mobile Service.
(function(){
// MobileServiceClient のインスタンスを作成
// URL, KEY は管理画面に表示されているものを貼り付け
var client = new WindowsAzure.MobileServiceClient(
"URL",
"KEY"
);
// Item テーブルのインスタンス取得
@YutaWatanabe
YutaWatanabe / index.html
Created August 22, 2014 00:08
Import the azure mobile services library.
<script src="http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.1.3.min.js"></script>
@YutaWatanabe
YutaWatanabe / MobileServiceClientInit.js
Last active August 29, 2015 14:05
Initialization of azure mobile service client.
(function(){
var client = new WindowsAzure.MobileServiceClient(
"URL",
"KEY"
);
// URL, KEY は管理画面に表示されているものを貼り付け
//このあと client を使ってモバイル サービス のデータにアクセスしていきます
@YutaWatanabe
YutaWatanabe / angular-scope-apply.js
Created August 13, 2014 11:07
AngularJS $scope.$apply
$scope.$apply(function(){
//$scopeの更新処理
});
// または
// $scopeの更新処理
$scope.$apply();
@YutaWatanabe
YutaWatanabe / cmvx.snippet
Last active June 15, 2019 09:11 — forked from olexale/cmvx.snippet
MvvmCross Code Snippet for Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>MvvmCross command</Title>
<Shortcut>cmvx</Shortcut>
<Description>Code snippet for MvvmCross command</Description>
</Header>
@YutaWatanabe
YutaWatanabe / Xamarin.iOS.tapgesture.cs
Created February 5, 2014 17:12
Xamarin.iOS タップしたらソフトウェアキーボードを隠す
var gesture = new UITapGestureRecognizer (() => {
this.txtTextBox.ResignFirstResponder ();
});
View.AddGestureRecognizer (gesture);
@YutaWatanabe
YutaWatanabe / hideNavigationBar.cs
Created December 31, 2013 03:07
特定の Screen でのみ Navigation Bar を非表示にする方法。ViewWillAppear で Hidden : true にし、ViewWillDisappear で Hidden : false にする。Xamarin チュートリアルより http://docs.xamarin.com/guides/ios/getting_started/hello,_mvc/
public override void ViewWillAppear (bool animated) {
base.ViewWillAppear (animated);
this.NavigationController.SetNavigationBarHidden (true, animated);
}
public override void ViewWillDisappear (bool animated) {
base.ViewWillDisappear (animated);
this.NavigationController.SetNavigationBarHidden (false, animated);
}