Skip to content

Instantly share code, notes, and snippets.

View sakapon's full-sized avatar
💭
May the Codeforces be with you.

Keihō Sakapon sakapon

💭
May the Codeforces be with you.
View GitHub Profile
@sakapon
sakapon / PushAll.ps1
Created July 23, 2013 10:09
とりあえずリポジトリに現在のファイルをすべてプッシュしたい場合のコマンド。
cd Repository01
git add --all .
git commit -m "This is a comment."
git push -u origin master
@sakapon
sakapon / Program.cs
Last active August 29, 2015 14:05
VerificationSample / SortConsole
/*
* このプログラムには、架空の機能が含まれます。
*/
using System;
namespace SortConsole
{
class Program
{
static void Main(string[] args)
@sakapon
sakapon / MainWindow.xaml
Last active August 29, 2015 14:15
Ink Gestures
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="InkGestureWpf.MainWindow"
Title="Ink Gestures" Height="800" Width="1200" WindowState="Maximized" FontSize="48">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="600"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
@sakapon
sakapon / MainWindow.xaml
Last active August 29, 2015 14:16
WpfSample / BorderlessWpf
<Window x:Class="BorderlessWpf.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="200" Width="200" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}">
<Grid>
<Ellipse Fill="#993399FF" Height="100" Width="100"/>
</Grid>
</Window>
@sakapon
sakapon / AppModel.cs
Last active August 29, 2015 14:17
WpfSample / LayoutWpf
using System;
using System.Collections.Generic;
using System.Linq;
namespace LayoutWpf
{
public class AppModel
{
public int[] Numbers { get; private set; }
@sakapon
sakapon / Program.cs
Created March 29, 2015 08:24
AzureMLSample / ColorDataConsole
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
namespace ColorDataConsole
{
static class Program
@sakapon
sakapon / correct-hue.r
Last active August 29, 2015 14:17
AzureMLSample / Correct hue value
ds <- maml.mapInputPort(1) # class: data.frame
ds$Hue <- ifelse(ds$Hue == 0 & ds$Saturation == 0, -60, ds$Hue)
maml.mapOutputPort("ds");
@sakapon
sakapon / remove-rows.r
Last active August 29, 2015 14:18
AzureMLSample / Remove dummy rows
ds <- maml.mapInputPort(1) # class: data.frame
rowscount <- nrow(ds)
ds <- head(ds, n = rowscount - 10)
maml.mapOutputPort("ds");
@sakapon
sakapon / KMeans.cs
Last active September 13, 2015 15:17
MLSample / ClusteringConsole
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace ClusteringConsole
{
[DebuggerDisplay(@"\{Clusters: {ClustersNumber}, Iterations: {IterationsNumber}\}")]
public class KMeans<T>
{
@sakapon
sakapon / AppModel.cs
Last active September 17, 2015 16:02
EventHubsSample / SenderWpf
using System;
using System.Text;
using Microsoft.ServiceBus.Messaging;
using Newtonsoft.Json;
namespace SenderWpf
{
public class AppModel
{
public static void SendMessage()