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
// Updates the player object in Azure Mobile Services and then the player's games | |
function update(item, user, request) { | |
var gamesTable = tables.getTable('GameData'); | |
request.execute({ | |
success: function(result) { | |
// Asychronously update games the player is part of | |
gamesTable.where(function(player) | |
{ | |
return this.OwnerId == player.PlayerId || | |
this.OpponentId == player.PlayerId |
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
namespace SpottedZebra.Examples.Serialization | |
{ | |
using System.IO; | |
using System.Runtime.Serialization; | |
public class SerializationExample | |
{ | |
[DataContract] | |
public class Sandwich | |
{ |
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
namespace SpottedZebra.Examples.WinRT | |
{ | |
using System; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Media; | |
using Windows.UI.Xaml.Navigation; | |
public sealed partial class SpritesheetExamplePage : Page | |
{ |
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
<Page | |
x:Class="SpottedZebra.Examples.WinRT.CanvasExamplePage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> | |
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> | |
<Canvas> |
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
<#@ template debug="false" hostspecific="true" language="C#" #> | |
<#@ output extension=".cs" #> | |
<#@ import namespace="System.IO" #> | |
/* THIS FILE IS AUTOGENERATED DO NOT EDIT | |
* | |
* This file is autogenerated from Coordinates.csv. | |
* If you want to add a new user interface coordinate | |
* do so in the CSV file then rebuild. | |
*/ |
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.IO; | |
using System.IO.Compression; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
namespace Petunk.Common.Models | |
{ | |
public class StreamUtilities | |
{ | |
public static Stream StringToStream(string json) |
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
class Square : AbstractEntity | |
{ | |
public const int Width = 80; | |
public const int Height = 80; | |
public ColorCode ColorCode { get; private set; } | |
public Square(int x, int y, ColorCode code) | |
{ | |
// TODO figure out where the texture should come from |
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
<html> | |
<head> | |
<title>Example Page</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<ul id="list"> | |
<li>One Item</li> | |
</ul> |
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
package atplaygames.common | |
{ | |
import flash.display.MovieClip; | |
import flash.events.Event; | |
/** | |
* Base game object which can be added to the stage. | |
* | |
* Use the onInit method to initialize the object. The entire |
NewerOlder