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
| javascript:(window.open(document.getElementsByTagName('track')[0].getAttribute('src'))) |
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
| PS D:\home> [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
| PS D:\home> $objFonts = New-Object System.Drawing.Text.InstalledFontCollection | |
| $objFonts.Families | |
| PS D:\home> | |
| Name | |
| ---- |
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
| [System.BitConverter]::ToString([convert]::FromBase64String("base64な文字列")).ToUpper().Replace("-","") | |
| function ConvertFrom-Base64 { | |
| param([string]$Base64String) | |
| $hex = foreach ($b in [convert]::FromBase64String($Base64String)) { | |
| "{0:x2}" -f $b | |
| } | |
| -join $hex | |
| } |
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
| @{ | |
| ViewBag.Title = "Index"; | |
| } | |
| @model MvcApplication1.Models.HomeViewModel | |
| <h2>Index</h2> | |
| @using (Html.BeginForm("Index", "Home", FormMethod.Post)) | |
| { | |
| <input type="submit" /> |
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
| /// <summary> | |
| /// Convert to DateTimeOffset from Json Date(Unix epoch) | |
| /// </summary> | |
| /// <param name="jsondate">ex: "/Date(1324707957994+0900)/"</param> | |
| /// <returns></returns> | |
| public Nullable<DateTimeOffset> ConvertToDateTimeOffsetFromJsonDate(string jsondate) | |
| { | |
| if (String.IsNullOrEmpty(jsondate)) return null; | |
| Regex regex = new System.Text.RegularExpressions.Regex(@"^\/date\((\d*)([\+\-]?\d*)\)\/+$"); |
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.Text.RegularExpressions; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| // http://www.ex-parrot.com/pdw/Mail-RFC822-Address.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 System; | |
| using System.Diagnostics; | |
| using System.Text.RegularExpressions; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
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.IO; | |
| using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Auth; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
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
| . '~\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1' | |
| $global:GitPromptSettings.BeforeText = ' on ' | |
| $global:GitPromptSettings.BeforeForegroundColor = [ConsoleColor]::White | |
| $global:GitPromptSettings.AfterText = " `ngit" |
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 factory = MessagingFactory.Create(ServiceBusEnvironment.CreateServiceUri("sb", "test", ""), new MessagingFactorySettings() | |
| { | |
| TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider(SasKeyName, SasKey), | |
| TransportType = TransportType.Amqp | |
| }); | |
| var eventHubClient = factory.CreateEventHubClient(EventHubName); | |
| var group = eventHubClient.GetDefaultConsumerGroup(); | |
| var reciver = group.CreateReceiver(state.ToString()); | |
| while (true) | |
| { |
OlderNewer