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
private static byte[] LotateImage(byte[] image) | |
{ | |
var converter = new ImageConverter(); | |
var img = (Image)converter.ConvertFrom(image); | |
var bmp = new Bitmap(img); | |
var props = bmp.PropertyItems; | |
for (int i = 0; i < props.Length; i++) | |
{ |
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
using Microsoft.AspNet.SignalR; | |
using Microsoft.AspNet.SignalR.Hubs; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Microsoft.Owin; | |
using Owin; | |
[assembly: OwinStartupAttribute(typeof(SignalRServerSample.Startup))] |
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
<Page | |
x:Class="XamlTraining.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:XamlTraining" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> | |
<Grid Background="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"> |
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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net; | |
using Newtonsoft.Json; | |
using System.Net.Http; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp"> | |
<Identity Name="3c689bab-1e0a-4d03-91b6-49b0e0d81947" Publisher="CN=Tsubasa" Version="1.0.0.0" /> | |
<mp:PhoneIdentity PhoneProductId="3c689bab-1e0a-4d03-91b6-49b0e0d81947" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> | |
<Properties> | |
<DisplayName>Band</DisplayName> |
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
/// <summary> | |
/// Enumの拡張クラス | |
/// </summary> | |
public static class EnumExtention | |
{ | |
/// <summary> | |
/// DisplayのNameを返す | |
/// </summary> | |
/// <param name="value"></param> | |
/// <returns></returns> |
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
<p><a href="mailto:info@contso.com?subject=問い合わせ" class="btn btn-primary btn-lg">送信</a></p> |
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
$StorageAccountName = "Storage Account Name" | |
$StorageAccountKey = "Storage Account Access Key" | |
$ContainerName = "Container Name" | |
$fileName = "Filtering file name" | |
$Context = New-AzureStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $StorageAccountKey | |
$Container = Get-AzureStorageContainer -Context $context -Name $ContainerName |
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 GetCardBrand(cardNo) { | |
var map = new Map(); | |
map.set("visa", "^4[0-9]{12}(?:[0-9]{3})?$"); | |
map.set("master", "^5[1-5][0-9]{14}$"); | |
map.set("amex", "^3[47][0-9]{13}$"); | |
map.set("diners", "^3(?:0[0-5]|[68][0-9])[0-9]{11}$"); | |
map.set("jcb", "^(?:2131|1800|35\d{3})\d{11}$"); | |
for (var [key, value] of map) { | |
var result = cardNo.match(value); |
OlderNewer