Parse an svg path object and generate an Array of path commands. Each command is an Array of the form [command, arg1, arg2, ...]
NOTE: parsing is done via pathSegList
which is faster and more reliable than parsing the path string directly, but might not work in old browsers.
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 getFileOperation = Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(relativePath); | |
getFileOperation.AsTask().Wait(); | |
var file = getFileOperation.GetResults(); | |
var openReadOperation = file.OpenReadAsync(); | |
openReadOperation.AsTask().Wait(); | |
using (var stream = openReadOperation.GetResults().AsStreamForRead()) | |
{ | |
return Load(stream, segmentsX, segmentsY, width); | |
} |
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
using System; | |
namespace CommandHelpers | |
{ | |
public class DelegateCommand : System.Windows.Input.ICommand | |
{ | |
#region Fields | |
private readonly Action<object> execute; |
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
newCopy = jQuery.extend(true, {}, originalObject); |
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 url = (window.URL || window.webkitURL).createObjectURL(mp3blob); | |
var link = window.document.createElement('a'); | |
link.href = url; | |
link.download = 'output.mp3'; | |
var evt = new MouseEvent('click', { 'view': window, 'bubbles': true, 'cancelable': true }); | |
link.dispatchEvent(evt); |
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
xcopy "$(KINECTSDK20_DIR)Redist\Face\$(Platform)\NuiDatabase" "$(TargetDir)\NuiDatabase" /S /R /Y /I |
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
<Window 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" | |
x:Name="window" | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" | |
x:Class="MvvmLightExtended.MainWindow" | |
Width="800" | |
Height="600" |
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
using System; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Media; | |
using System.Windows.Media.Animation; | |
namespace ExpandDemo | |
{ | |
class AnimatedWrapPanel : Panel | |
{ |
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
// Send messeges between a root window and its iframes. | |
// This works for only one level of iframes - because that was what I needed | |
// NOTE: jQuery is required | |
'use strict'; | |
(function(root){ | |
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 static class ServiceLocator | |
{ | |
public static Dictionary<Type, object> serviceContainer = null; | |
public static void AddService<T>(T serviceInstance) | |
{ | |
if (null == serviceContainer) | |
serviceContainer = new Dictionary<Type, object>(); | |
try |
OlderNewer