Skip to content

Instantly share code, notes, and snippets.

namespace Controls
{
using Windows.Foundation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
/// <summary>
/// Displays a loading indicator.
/// </summary>
@samcragg
samcragg / StringToDouble.cs
Created January 26, 2012 01:44
strtod in C# unit tests.
using System;
namespace SvgParser
{
/// <summary>
/// Provides methods to convert a string to a double precision floating
/// point number.
/// </summary>
public static class StringToDouble
{
@samcragg
samcragg / points.cpp
Created January 21, 2012 23:25
Simple parser for SVG Polgon points.
#include <cstdlib>
#include <iostream>
#include <locale>
#include <string>
#include <vector>
bool is_whitespace(char value)
{
// Values are defined in the SVG specification.
return (value == '0x9') ||