Skip to content

Instantly share code, notes, and snippets.

<script src="http://gist-it.appspot.com/github/tmori3y2/BlogSamples/blob/Article_20160223/MySampleControls/MyCollectionControls/MyCollectionControls/ViewModels/MyCollectionViewModel.cs?slice=132:147"></script>
@tmori3y2
tmori3y2 / NuGet.config
Last active October 31, 2016 12:38
NuGet.config placed the ancestor path of solutions
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value=".\packages" />
</config>
<packageSources>
<add key="LocalPackageSource" value=".\NuGetPackageSource" />
</packageSources>
</configuration>
using System;
using System.Collections.Generic;
using System.Linq;
public static class Program
{
public static void Main()
{
var text = "Hello World";
text.Dump(1);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
public static class Program
{
public static void Main()
{
var text = "Hello World";
using System;
using System.Runtime.InteropServices;
public static class Program
{
public static void Main()
{
"# Zero".Dump();
(0.0f).ToBinaryStringDump("Zero");
(-0.0f).ToBinaryStringDump("-Zero");
@tmori3y2
tmori3y2 / TestXDocWriteTo.linq
Last active May 25, 2017 00:14
TestXDocWriteTo linqpad script
<Query Kind="Program">
<Output>DataGrids</Output>
<Reference>&lt;RuntimeDirectory&gt;\System.Xml.Serialization.dll</Reference>
<Namespace>System.Globalization</Namespace>
<Namespace>System.IO</Namespace>
<Namespace>System.Linq</Namespace>
<Namespace>System.Text</Namespace>
<Namespace>System.Xml</Namespace>
<Namespace>System.Xml.Linq</Namespace>
<Namespace>System.Xml.Schema</Namespace>
@tmori3y2
tmori3y2 / SetWim10_JapaneseKeyboardLayout.ps
Created May 27, 2017 02:56
Set Japanese Keyboard Layout for Windows .wim file.
$WimDir = "D:\WIM"
$MountDir = $WimDir + "\Mount"
$Wim = $WimDir + "\install.wim"
$Name = "Windows 10 Pro"
cd /d $WimDir
md $MountDir
Dism /Mount-Image /ImageFile:$Wim /Name:$Name /MountDir:$MountDir
Dism /Image:$MountDir /Set-LayeredDriver:6
@tmori3y2
tmori3y2 / xLabelNode.py
Last active May 27, 2017 13:00
graphviz node with labeled by subgraph.
# http://tmori3y2.hatenablog.com/entry/2017/05/14/133003
# import Digraph from graphviz pakage.
# http://graphviz.readthedocs.io/en/latest/manual.html
from graphviz import Digraph
# graphviz node with labeled by subgraph.
# http://d.hatena.ne.jp/simply-k/20100727/1280224098
# http://nekowarau.seesaa.net/article/424645749.html
@tmori3y2
tmori3y2 / petrinet.py
Created May 28, 2017 00:13
Petri Net Class
# Petri Net graph module.
# References
# Petri Nets World: http://www.informatik.uni-hamburg.de/TGI/PetriNets
# (Tutorilas): http://www.informatik.uni-hamburg.de/TGI/PetriNets/introductions/
# pnml.org: http://www.pnml.org
# (Schema): http://www.pnml.org/version-2009/version-2009.php
# import Digraph from graphviz pakage.
# http://graphviz.readthedocs.io/en/latest/manual.html
@tmori3y2
tmori3y2 / xLabelNode.dot
Created May 28, 2017 00:22
graphviz node with labeled by subgraph.
digraph "XNode Test" {
graph [rankdir=LR]
subgraph cluster_c0 {
graph [bgcolor=white label="Circle Node 0" labeljust=c labelloc=t penwidth=0]
node [color=black fillcolor=white height=2 shape=circle style="solid, filled" width=2]
c0 [label=""]
}
subgraph cluster_b0 {
graph [bgcolor=white label="Bar Node 0" labeljust=c labelloc=b penwidth=0]
node [color=black fillcolor=white height=1 shape=box style="solid, filled" width=0.1]