Skip to content

Instantly share code, notes, and snippets.

// P.264 15.2.3章 add const例
template<template T>
struct addconst{
typedef T const type;
};
// remove const例
// 1
template<template T>
@h-sao
h-sao / gist:2af7d4d39a7222223868
Last active August 29, 2015 14:14
VirtualDOMのハンズオン:index.html(アラートが出る、bodyの下にdiv>divが出来る)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="virtualdom.js"></script>
</head>
<body>
<div>
<input type="text" name="todo" />
<button name="add" type="button">add</button>
@h-sao
h-sao / gist:a656b55a9928a8678a84
Created January 23, 2015 11:29
VirtualDOMのハンズオン:index.html(要素を追加するサンプル)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="virtualdom.js"></script>
</head>
<body>
<div>
<input type="text" name="todo" />
<button name="add" type="button">add</button>
@h-sao
h-sao / gist:7655d3b019b25d3cd843
Created January 23, 2015 11:51
VirtualDOMのハンズオン:index.html(要素を追加&削除するサンプル)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="virtualdom.js"></script>
<title></title>
</head>
<body>
<div>
<input type="text" name="todo" />
<button name="add" type="button">add</button>
@h-sao
h-sao / gist:93f5eba4d4ffd91bbb1b
Created February 23, 2015 11:49
(f)(a); の見える範囲とは?→
void f(~); // (1)
namespace ns{
void f(~); // (2)
void g(){
::f(a); // 完全にGlobal(1)を探しに行く
}
}
void f(~) // (1);
@h-sao
h-sao / Build2010.cmd
Created May 10, 2011 08:09
VMware vSphere Web Services SDK 4.1 for Visual Studio 2010(Windows7 64bit) from a command prompt
@setlocal
@echo off
@rem generates and compiles the .NET proxy classes and precompiled XmlSerializers
@rem and builds all the C# samples in debug mode.
@rem The name of the assemblies to generate. They should have a "2008" suffix
@rem if the samples are to be built automatically.
@rem
@set FILE_VIMSERVICE=VimService2008
@set FILE_VIM25SERVICE=Vim25Service2008
@h-sao
h-sao / MyScr.java
Created August 31, 2011 01:08
[iアプリ:Star1.3]スクラッチパッドへの読み書き
// "MyScr.java"
// Docomo iappli Star-1.3
// スクラッチパッド利用サンプル
// Last Change:01-Sep-2011.
// written by Sao Haruka
//==============================================================//
// パッケージ名
//==============================================================//
package SaoProj; // 自分のプロジェクト名
@h-sao
h-sao / Install_log_on_Windows_for_TensorFlow_GPU.log
Created April 7, 2017 11:07
Install log on WIndows for TensorFlow GPU
# Install log on WIndows for TensorFlow GPU
# Check version
(tensorflow) D:\dev\anaconda>pip -V
pip 9.0.1 from C:\utils\Anaconda3\envs\tensorflow\lib\site-packages (python 3.5)
(tensorflow) D:\dev\anaconda>conda -V
conda 4.3.14
@h-sao
h-sao / Install_log_on_Windows_for_Keras.log
Created April 12, 2017 10:09
Install_log_on_Windows_for_Keras
# Error occured
(tensorflow) D:\dev\anaconda>pip install keras
Collecting keras
Downloading Keras-2.0.3.tar.gz (196kB)
100% |################################| 204kB 3.3MB/s
Collecting theano (from keras)
Downloading Theano-0.9.0.tar.gz (3.1MB)
100% |################################| 3.1MB 409kB/s
Collecting pyyaml (from keras)
@h-sao
h-sao / Install_log_Pylint_on_Anaconda.log
Created April 17, 2017 11:08
Install_log_Pylint_on_Anaconda
(C:\utils\Anaconda3) D:\dev\anaconda>activate tensorflow
(tensorflow) D:\dev\anaconda>anaconda search -t conda pylint
Using Anaconda API: https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
Name | Version | Package Types | Platforms
------------------------- | ------ | --------------- | ---------------
???/pylint | 1.1.0 | conda | linux-64
: http://www.pylint.org