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 SaveSplash() { | |
window.msWriteProfilerMark("start-render"); | |
var body = document.body, | |
appdata = Windows.Storage.ApplicationData.current, | |
localfolder = appdata.localFolder, | |
canvas = document.createElement("canvas"), | |
ctx = canvas.getContext("2d"), | |
imgs = document.body.getElementsByTagName("img"), |
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 SaveImage(strm, localfolder, filename) { | |
return localfolder.createFileAsync(filename, Windows.Storage.CreationCollisionOption.replaceExisting).then(function (file) { | |
return file.openAsync(Windows.Storage.FileAccessMode.readWrite); | |
}).then(function (ras) { | |
var os = ras.getOutputStreamAt(0), | |
is = strm.getInputStreamAt(0); | |
return Windows.Storage.Streams.RandomAccessStream.copyAndCloseAsync(is, os); | |
}); | |
} |
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
// Usage in Xaml | |
// | |
// <FlipView UpdateOnChange.VisualState="{Binding Path=VisualState}"> | |
// | |
// | |
// Header File | |
#pragma once |
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 XmlDomNodeListIterator | |
{ | |
public: | |
XmlDomNodeListIterator(_In_ IXMLDOMNodeList* list, long index) | |
: _list(list), _index(index) | |
{} | |
ComPtr<IXMLDOMNode> operator*() const | |
{ |
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
#include <stdio.h> | |
#include <tchar.h> | |
#include <vector> | |
#include <string> | |
#include <math.h> | |
#include <iostream> | |
using namespace std; |
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
REM | |
REM Use this script to create and attach a VHD by executing diskpart likeso | |
REM | |
REM DiskPart /s create-and-attach-vhd | |
REM | |
REM This script creates a 10MB VHD named seed.vhd and attaches it as drive L: | |
REM | |
create vdisk file="C:\Users\seank\Desktop\seed.vhd" maximum=10 type=expandable | |
select vdisk file="C:\Users\seank\Desktop\seed.vhd" | |
attach vdisk sd=D:(A;;GA;;;WD) |
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
REM | |
REM Use this script to detach a VHD by executing diskpart likeso | |
REM | |
REM DiskPart /s detach-vhd | |
REM | |
select vdisk file="C:\Users\seank\Desktop\seed.vhd" | |
detach vdisk |
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
@REM | |
@REM Assumes ffmpeg.exe (https://www.ffmpeg.org/) | |
@REM in the same folder and invokes it to detect if an mp4 is corrupt. | |
@REM | |
@%~dp0\ffmpeg.exe -v error -i %1 -f null - >error.log 2>&1 |
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
@echo off | |
goto start | |
With this script properly installed you can right click a group of files and select Send To | A New Folder and | |
much like Send To | Compressed (zipped) folder, it it will create a folder with the name of the first selected | |
item and then move all the items selected into that new folder. | |
To set up: | |
- Open this folder in explorer, use "start ." from a command console. |
OlderNewer