Skip to content

Instantly share code, notes, and snippets.

View cointoss1973's full-sized avatar

Takayuki Kondo cointoss1973

View GitHub Profile

Setting up RhodeCode on Ubuntu Server 12.04

Preparation

  1. Install Ubuntu Server.
  2. Update Ubuntu with the commands:
$ hg clone bb:rhodecode-pot-ja-work
複製先ディレクトリ: .
中断: 複製先 '.' は空ではありません
$ hg clone bb:rhodecode-pot-ja-work rhodecode-pot-ja-work
全リビジョンを取得中
リビジョンを追加中
マニフェストを追加中
<?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">
@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)に直線を当てはめよ
@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 / file0.txt
Last active August 29, 2015 14:14
既存のリポジトリを GitHub に 登録する (proxy 越し) ref: http://qiita.com/cointoss1973/items/805def609456a5ceea5d
$ git remote add origin https://github.com/username/reponame.git
$ git config remote.origin.proxy http://company.proxy.com:8080
$ git push -u origin master
@cointoss1973
cointoss1973 / file0.txt
Created March 12, 2015 00:52
git でアーカイブを作成するコマンド ref: http://qiita.com/cointoss1973/items/669514b60784119894ee
> git archive -o src.zip HEAD src
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SynTP\Parameters]
"SuppressPossibleJumps"=dword:0000007b
"LidOpenCloseFlags"=dword:00000001
"ExtraCapabilities7Add"=dword:00010000
"ExtraCapabilities7Mask"=dword:ffffffff
"LidCloseKey"=dword:0000e058
"LidOpenKey"=dword:0000e059
@cointoss1973
cointoss1973 / bash
Last active March 6, 2016 23:44
Git bash 上から python インタプリタを起動する ref: http://qiita.com/cointoss1973/items/a0da81df10f8cc04c83e
alias python='winpty python.exe'
@cointoss1973
cointoss1973 / json
Last active March 7, 2016 03:37
Visual Studio Code に Proxy を設定する方法 ref: http://qiita.com/cointoss1973/items/b3c84daeed90fd183501
// Place your settings in this file to overwrite the default settings
{
"http.proxy": "http://proxy.example.com:8000",
"http.proxyStrictSSL": false
}