This file contains hidden or 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
| return new TabbedPage { | |
| Children = { | |
| new ContentPage { | |
| Title = "Home", | |
| Content = new StackLayout { | |
| VerticalOptions = LayoutOptions.CenterAndExpand, | |
| HorizontalOptions = LayoutOptions.CenterAndExpand, | |
| Children = { | |
| new Label { | |
| Text = "Xamarin.Forms", |
This file contains hidden or 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
| html | |
| head | |
| title!= title | |
| body | |
| h1!= message |
This file contains hidden or 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
| var express = require('express'); | |
| var app = express(); | |
| app.set('view engine', 'jade'); | |
| app.set('views', './views') | |
| app.get('/', function(req, res){ | |
| //res.send('Hello World'); | |
| res.render('index', { title: 'Express', message: 'Rendered by Jade'}); | |
| }).listen(3000); |
This file contains hidden or 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
| var express = require('express'); | |
| var app = express(); | |
| app.get('/', function(req, res){ | |
| res.send('Hello World'); | |
| }).listen(3000); |
This file contains hidden or 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
| <ul data-role="listview" data-inset="true" data-filter-placeholder="Search products..." data-filter="true"> | |
| <li><a href="#">Windows</a></li> | |
| <li><a href="#">Office</a></li> | |
| <li><a href="#">XBOX</a></li> | |
| <li><a href="#">Windows Phone</a></li> | |
| <li><a href="#">Visual Studio</a></li> | |
| <li><a href="#">Microsoft Azure</a></li> | |
| </ul> |
This file contains hidden or 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
| public override bool FinishedLaunching (UIApplication app, NSDictionary options) | |
| { | |
| window = new UIWindow (UIScreen.MainScreen.Bounds); | |
| //XMLファイルを読み込み | |
| var doc = XDocument.Load ("SessionData.xml"); | |
| // LINQ to XML & Monotouch.Dialog |
This file contains hidden or 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
| var locationTable = client.getTable("Location"); | |
| locationTable.insert({ | |
| 'Latitude' : position.coords.latitude, | |
| 'Longitude' : position.coords.longitude, | |
| 'Altitude' : position.coords.altitude, | |
| 'Accuracy' : position.coords.accuracy, | |
| 'AltitudeAccuracy' : position.coords.altitudeAccuracy, | |
| 'Heading' : position.coords.heading, | |
| 'Speed' : position.coords.speed | |
| }); |
This file contains hidden or 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
| var onSuccess = function(position) { | |
| alert('Latitude: ' + position.coords.latitude + '\n' + | |
| 'Longitude: ' + position.coords.longitude + '\n' + | |
| 'Altitude: ' + position.coords.altitude + '\n' + | |
| 'Accuracy: ' + position.coords.accuracy + '\n' + | |
| 'Altitude Accuracy: ' + position.coords.altitudeAccuracy + '\n' + | |
| 'Heading: ' + position.coords.heading + '\n' + | |
| 'Speed: ' + position.coords.speed + '\n' + | |
| 'Timestamp: ' + position.timestamp + '\n'); |
This file contains hidden or 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
| // テーブルのすべての項目の読出します | |
| itemTable.read() | |
| .then(function(items){ | |
| // 配列で項目が返ってきます | |
| $each(items, function(i, e){ | |
| // 項目 i に対する処理 | |
| }); | |
| }); |