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
# -*- coding: utf-8 -*- | |
import pandas | |
import statsmodels.api as sm | |
import patsy as patsy | |
import numpy as np | |
from os import path | |
import matplotlib.pyplot as plt | |
# read csv file ====================================================== | |
workdir = path.dirname( path.abspath( __file__ ) ) |
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
# -*- coding: utf-8 -*- | |
import pandas | |
import statsmodels.api as sm | |
import patsy as patsy | |
import numpy as np | |
from os import path | |
import matplotlib.pyplot as plt | |
# read csv file ====================================================== | |
workdir = path.dirname( path.abspath( __file__ ) ) |
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
set DM2="SG - Domain Member2" | |
set CIDR="<ローカルPCのIPアドレス>" | |
:: ============================================================================== | |
:: Creates Security groups Prior to Adding Rules | |
:: ============================================================================== | |
call ec2addgrp %DM2% -d "Active Directory Domain Member2" | |
:: ============================================================================== |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
namespace MyRoslyn.CSharp |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using C5; // http://www.itu.dk/research/c5/ | |
/* | |
* クラスタリングを行うプログラム | |
* ロジックは以下記事内のRコードと同様 |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using ClosedXML.Excel; | |
namespace ClosedXMLTest | |
{ | |
class ExcelRead | |
{ |
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
# -*- coding: utf-8 -*- | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from sklearn import datasets | |
import urllib | |
# ピマインディアンデータセット --------------------- | |
# http://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.names | |
# URL for the Pima Indians Diabetes dataset (UCI Machine Learning Repository) |
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.Collections.Generic; | |
using System.Xml; | |
namespace XMLSettingTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
grammar Calc; | |
options{ | |
language=CSharp3; | |
output=AST; | |
ASTLabelType=CommonTree; | |
} | |
@header { | |
using System; |
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
# 適切なカレントディレクトリを設定した上で、このスクリプトを実行下さい。 | |
# .NET Frameworkのカレントディレクトリをセット | |
[IO.Directory]::SetCurrentDirectory((Get-Location).ProviderPath) | |
# ユーティリティ関数の読み込み | |
. .\textmanip.ps1 | |
# テスト用フォルダの作成 | |
TestFileCreate "test sample1\1.txt" 1000 |
OlderNewer