This file contains 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
... | |
</Grid> | |
... | |
<Page.BottomAppBar> | |
<AppBar> | |
<Button Name="btnTakePhoto" Style="{StaticResource PhotoAppBarButtonStyle}" | |
Click="OnTakePhotoClick" /> | |
</AppBar> | |
</Page.BottomAppBar> | |
... |
This file contains 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
using Windows.Media.Capture; | |
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
This file contains 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
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
//add todo item to trigger insert operation which returns item.SAS | |
var todoItem = new TodoItem() { Text = "test image", ImageName = media.Name }; | |
await todoTable.InsertAsync(todoItem); |
This file contains 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
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
//add todo item | |
var todoItem = new TodoItem() { Text = "test image", ImageName = media.Name }; | |
await todoTable.InsertAsync(todoItem); |
This file contains 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 class TodoItem | |
{ | |
public int Id { get; set; } | |
[DataMember(Name = "text")] | |
public string Text { get; set; } | |
[DataMember(Name = "complete")] | |
public bool Complete { get; set; } |
This file contains 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
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
//add todo item to trigger insert operation which returns item.SAS | |
var todoItem = new TodoItem() { | |
ContainerName = "mypics", | |
ResourceName= media.Name, |
This file contains 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
... | |
using Microsoft.WindowsAzure.Storage.Auth; | |
using Microsoft.WindowsAzure.Storage.Blob; | |
... | |
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video |
This file contains 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 azure = require('azure'); | |
var qs = require('querystring'); | |
function insert(item, user, request) { | |
var accountName = '<replace with your storage account name>'; | |
var accountKey = '<replace with your storage account key>'; | |
var host = accountName + '.blob.core.windows.net'; | |
var canonicalizedResource = '/' + item.containerName + '/' + item.resourceName; | |
//Must be lowercase | |
item.containerName = item.containerName.toLowerCase(); |
This file contains 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
function CheckFeed() { | |
getUpdatesAndNotify(); | |
} | |
var request = require('request'); | |
function getUpdatesAndNotify() { | |
request('http://search.twitter.com/search.json?q=@cloudnick&rpp=2', | |
function tweetsLoaded (error, response, body) { | |
var results = JSON.parse(body).results; | |
if(results){ |
This file contains 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
using System; | |
using Microsoft.SPOT; | |
using Microsoft.Azure.Zumo.MicroFramework.Core; | |
namespace SensorDemoMobileServices | |
{ | |
public class SensorReading : IMobileServiceEntity | |
{ | |
public int Id { get; set; } | |
public string SensorID { get; set; } |
OlderNewer