PowerShell
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.Collections.Generic; | |
| using System.Reflection; | |
| using System.Threading.Tasks; | |
| using System.Web.Http; | |
| using System.Web.Http.Dispatcher; | |
| using System.Web.Http.SelfHost; | |
| namespace SelfHost | |
| { |
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.Collections.Generic; | |
| using System.Net.Http; | |
| namespace CardStatus | |
| { | |
| class Program | |
| { | |
| static void RunCheck(int antragsnummer) | |
| { |
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.Collections.Generic; | |
| using System.Linq; | |
| using Microsoft.WindowsAzure; | |
| using Microsoft.WindowsAzure.StorageClient; | |
| class PatchIncorrectMimeTypesProgram | |
| { | |
| static void recurse(IListBlobItem blobItem, Action<CloudBlockBlob> action) | |
| { |
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.Data.Services.Client; | |
| using System.Data.Services.Common; | |
| using System.Linq; | |
| using Microsoft.WindowsAzure; | |
| using Microsoft.WindowsAzure.StorageClient; | |
| namespace PlayingWithAzureTableSAS | |
| { | |
| class Program |
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.Collections.Generic; | |
| using System.Linq; | |
| using Microsoft.WindowsAzure; | |
| using Microsoft.WindowsAzure.StorageClient; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { |
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.Data.Services.Client; | |
| using System.Data.Services.Common; | |
| using System.Linq; | |
| using Microsoft.WindowsAzure; | |
| using Microsoft.WindowsAzure.StorageClient; | |
| using System.Threading; | |
| namespace CopyBlobsViaAPI | |
| { |
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
| zoomLevel.TextChanged += (s, e) => | |
| { | |
| Func<WebView, double, bool> zoom = (wv, zoomPercentage) => | |
| { | |
| var script = string.Format( | |
| "(function () {{ document.styleSheets[0]['rules'][0].style['zoom'] = {0}; }})();", zoomPercentage); | |
| try | |
| { | |
| var result = wv.InvokeScript("eval", new string[] { script }); |
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
| namespace WindowsRuntimeComponent1 | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; | |
| using Windows.Foundation; | |
| public interface IDoStuff | |
| { | |
| IAsyncAction DoItAsync(); |
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
| # Given as free as possible: MS-PL | |
| $accountname = "azureaccountname"; | |
| $accountkey = [System.IO.File]::ReadAllText(".\accountkey.txt"); | |
| $backupcontainername = "backup"; | |
| $dllpath = [System.IO.Path]::Combine([System.Environment]::CurrentDirectory, "Microsoft.WindowsAzure.StorageClient.dll") | |
| $loadresult = [Reflection.Assembly]::LoadFile($dllpath); |