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
| Sub GetAllCommandsAsYaml() | |
| Dim cmd As Command | |
| Dim ow As OutputWindow = DTE.Windows.Item(Constants.vsWindowKindOutput).Object | |
| Dim owp As OutputWindowPane | |
| Dim exists As Boolean | |
| Dim i As Integer | |
| Dim sArray() As String | |
| sArray = New String() {} |
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
| <html> | |
| <body> | |
| <% Response.Write(Date) %> | |
| <!--#include file="aspUtils.asp"--> | |
| </body> | |
| </html> |
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 Mvc4SampleApplication.Filters; | |
| using System.Web; | |
| using System.Web.Security; | |
| using WebMatrix.WebData; | |
| [assembly: PreApplicationStartMethod(typeof(PreApplicationTasks), "Initializer")] | |
| public static class PreApplicationTasks | |
| { | |
| public static void Initializer() |
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
| Add-type -AssemblyName office | |
| $find = "SPEAKER" | |
| $replace = "Jon Galloway" | |
| function ReplaceText { | |
| param( | |
| [object]$shape, | |
| [string]$find, | |
| [string]$replace | |
| ) |
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
| @echo off | |
| "%ProgramFiles(x86)%\Microsoft XDE\8.0\xde.exe" -createDiffDisk "%LOCALAPPDATA%\Microsoft\XDE\dd.480x800.1024.vhd" -vhd "%ProgramFiles(x86)%\Microsoft SDKs\Windows Phone\v8.0\Emulation\Images\Flash.480x800.vhd" -name "Emulator WVGA" -memsize 1024 |
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 Microsoft.SPOT; | |
| using Microsoft.SPOT.Presentation.Media; | |
| using Watch.Face.Common; | |
| using Watch.Face.Scroll.Properties; | |
| namespace Watch.Face.Scroll.WatchFace | |
| { | |
| class WatchFaceScroll:WatchFaceBase |
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 Microsoft.SPOT.Presentation.Media; | |
| using Watch.Face.Common; | |
| namespace Watch.Face.Fonts.WatchFace | |
| { | |
| class WatchFaceFonts:WatchFaceBase | |
| { | |
| private string GetRandomSmall(bool before) |
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
| protected override void OnPaint(PaintEventArgs e) | |
| { | |
| // Paint the LCD control. Use the contents of the LCD if available; | |
| // otherwise call through to the base class. | |
| if (_bitmap != null) | |
| { | |
| // Synchonize access to the bitmap with the .NET Micro Framework | |
| // thread. | |
| lock (_bitmap) | |
| { |
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
| protected override void OnPaint(PaintEventArgs e) | |
| { | |
| // Paint the LCD control. Use the contents of the LCD if available; | |
| // otherwise call through to the base class. | |
| if (_bitmap != null) | |
| { | |
| // Synchonize access to the bitmap with the .NET Micro Framework | |
| // thread. | |
| lock (_bitmap) | |
| { |
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
| <%@ Page Language="C#" AutoEventWireup="true" %> | |
| <%@ Import Namespace="System.Threading" %> | |
| <script runat="server"> | |
| protected void Page_Load(object sender, EventArgs e) | |
| { | |
| uint viewIndex = 0; | |
| uint.TryParse(Request.QueryString["view"], out viewIndex); | |
| views.ActiveViewIndex = (int)(viewIndex < views.Views.Count ? viewIndex : 0); |