Skip to content

Instantly share code, notes, and snippets.

View cointoss1973's full-sized avatar

Takayuki Kondo cointoss1973

View GitHub Profile
@cointoss1973
cointoss1973 / FizzBuzz.ps1
Created July 13, 2014 07:28
PowerShell で FizzBuzz
#
# FizzBuzz.ps1
#
Function Get-FizzBuzz($num)
{
$Fizz = $num % 3
$Buzz = $num % 5
if ($Fizz -eq 0 -and $Buzz -eq 0) {
return "Fizz Buzz"
} elseif ( $Fizz -eq 0) {
@cointoss1973
cointoss1973 / lsq.py
Created January 22, 2014 10:46
これなら分かる応用数学教室 最小二乗法 p4 サンプル
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 参考: http://kaiseki-web.lhd.nifs.ac.jp/documents/Python/leastmean.htm
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
# これなら分かる応用数学教室 p.4
# 【例1.2】 4点(4,-17),(15,-4),(30,-7),(100,70)に直線を当てはめよ
<?xml version="1.0"?>
<Project DefaultTargets="CopyFiles" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<TargetFiles Include="srcdir\**"
Exclude="**\*.obj;**\*.bak;**\.svn\**" />
</ItemGroup>
<Target Name="CopyFiles">
$ hg clone bb:rhodecode-pot-ja-work
複製先ディレクトリ: .
中断: 複製先 '.' は空ではありません
$ hg clone bb:rhodecode-pot-ja-work rhodecode-pot-ja-work
全リビジョンを取得中
リビジョンを追加中
マニフェストを追加中

Setting up RhodeCode on Ubuntu Server 12.04

Preparation

  1. Install Ubuntu Server.
  2. Update Ubuntu with the commands:
@cointoss1973
cointoss1973 / debian.rst
Created May 6, 2013 03:06
Debian GNU/Linux 7.0 wheezy
@cointoss1973
cointoss1973 / python-tutorial.rst
Last active December 17, 2015 00:39
Python関連チュートリアルまとめ
@cointoss1973
cointoss1973 / hel.sh
Last active December 15, 2015 12:19
my first python one liner
python -c "print 'Hello World!'"

Git と Mercurial の pull と fetch の違い

git の pull は、 hg の fetch と同じである。

hg fetch hg pull + hg merge git pull git fetch + git merge
@cointoss1973
cointoss1973 / hg-git.rst
Last active December 15, 2015 03:29
hg-git コトハジメ

hg-git コトハジメ

hg-git とは?

hg-git とは、Gitリポジトリを mercurial のコマンドで操作できる Mercurialの拡張です。

インストール方法