Skip to content

Instantly share code, notes, and snippets.

@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
using System;
using System.Runtime.InteropServices;
public static class Program
{
public static void Main()
{
"# Zero".Dump();
(0.0f).ToBinaryStringDump("Zero");
(-0.0f).ToBinaryStringDump("-Zero");
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.Collections.Generic;
using System.Linq;
public static class Program
{
public static void Main()
{
var text = "Hello World";
text.Dump(1);
<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 / spec.nuspec
Created May 3, 2016 08:39
.nuspec template
<?xml version="1.0"?>
<package>
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
@tmori3y2
tmori3y2 / project.nuspec
Last active April 7, 2016 10:54
.nuspec template
<?xml version="1.0"?>
<package>
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
@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>
@tmori3y2
tmori3y2 / MSBuildTasks.ImportTasks.Test.csproj
Created March 27, 2016 02:28
Import elements sample of automatic imported MSBuild target in .csproj file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.props" Condition="Exists('..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DA3EEADE-29E4-4D57-B377-D8FA046E26C1}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
@tmori3y2
tmori3y2 / MSBuildTasks.ImportTasks.nuspec
Created March 26, 2016 05:40
NuSpec for automatic imported MSBuild target file which imports another one installed at the same time by NuGet
<?xml version="1.0"?>
<package>
<metadata>
<id>MSBuildTasks.ImportTasks</id>
<version>0.1.0.0</version>
<title>MSBuildTasks.ImportTasks</title>
<authors>tmori3y2</authors>
<owners>tmori3y2</owners>
<projectUrl>http://tmori3y2.hatenablog.com/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>