勉強会で何人かでGo触ってみようって流れなので情報などなど。
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 psutil | |
from mpl_toolkits.mplot3d import Axes3D | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
TIME_NUM = 90 | |
FRAMES = 360 |
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.Collections.Generic; | |
using System.Linq; | |
namespace BowllingGamaKata | |
{ | |
public class Game | |
{ | |
private List<int> rolls; | |
public Game() |
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 | |
from mercurial import ui, hg | |
# 更新があったときにビルド要求をする拡張し | |
EXTENSION = '.rst' | |
# ビルド用URL | |
BUILD_URL = 'http://example.jp:8080/job/job_name/build' |
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
#!python 2 | |
#! coding:utf-8 | |
""" | |
リポジトリのhooksフォルダに置く。 | |
hooksフォルダのpost-commit.batには以下のように記述。 | |
cd C:\Repositorys\exampleProject\hooks | |
post-commit.py %1 %2 | |
""" |
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
open DeltaEngine.Core | |
open DeltaEngine.Datatypes | |
open DeltaEngine.Platforms | |
type EmptyGame() = | |
let mutable fadePercentage = 0.0f | |
let mutable currentColor = Color.Black | |
let mutable nextColor = Color.Black | |
let SwitchNextRandomColor() = |
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
open DeltaEngine.Core | |
open DeltaEngine.Datatypes | |
open DeltaEngine.Platforms | |
type LerpColor = { Current: Color; Next: Color; Percentage:float32 } | |
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>] | |
module LerpColor = | |
let initialState = {Current=Color.Black; Next=Color.Black; Percentage=0.0f} |
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
class Registry(object): | |
instance = None | |
@classmethod | |
def initialize(cls): | |
cls.instance = Registry() | |
def __init__(self): | |
self.data = 'Hello World' |
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 nunit_dir=(NUnitのインストールフォルダ) | |
set msbuild_dir=c:\Windows\Microsoft.NET\Framework\v4.0.30319 | |
set target=(csprojのパス) | |
set testdll=(テストプロジェクトのDLLのパス) | |
watchmedo shell-command --patterns="*.cs" --recursive --wait --command="%msbuild_dir%\MSBuild.exe %target% & %nunit_dir%\nunit-console.exe %testdll% /nologo" |
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
### 使い方 | |
### 1. PowerShellを起動する | |
### 2. PowerShell 実行権限の変更(最初の一回のみ実行) | |
### Set-ExecutionPolicy RemoteSigned | |
### 3. 7z をインストール(インストールしたフォルダ内に7z.exeがある) | |
### http://sevenzip.sourceforge.jp/download.html | |
### 4. このスクリプトをCopyZip.ps1というファイル名で実行 | |
### 5. コピー元のフォルダパス、コピー先・ZIPファイル作成先のフォルダパス、7z.exeのパスを書き換える | |
### 6. PowerShellでカレントディレクトリをCopyZip.ps1を置いたディレクトリに移動 | |
### 7. 以下のコマンドを実行 |
OlderNewer