Skip to content

Instantly share code, notes, and snippets.

View aliyome's full-sized avatar

aliyome aliyome

View GitHub Profile

TestDriven.NET(nUnit)試用所見

2012/11/19  

TestDriven.NET

  • VisualStudioに統合されたテストスイートアドオン
  • 主な機能
import std.stdio : writeln;
import std.array : empty;
import core.thread : Fiber;
//class C {
//public:
// void onload(void delegate() f) {
// f();
// }
import vector;
class PlayerConstants {
Vector2f walkBack;
Vector2f walkFront;
Vector2f dashBack;
Vector2f dashFront;
Vector2f airBack;
Vector2f airFront;
@aliyome
aliyome / modern vb.md
Last active July 22, 2018 06:04
Modern .NET Programming

Modern Visual Basic

2014.05.10


注意

@aliyome
aliyome / enemy.d
Last active July 22, 2018 06:20
tweenっぽい
import std.stdio;
import std.container : DList;
import std.range;
class E {
typeof(this) moveBy(int x, int y, int duration, int parallel = 0) {
timelines[parallel].insertBack(timelineImpl(duration, {
float vx = cast(float)x / duration;
float vy = cast(float)y / duration;
this.x += vx;
@aliyome
aliyome / ubuntu1204.md
Last active July 22, 2018 06:22
ホスト初期設定 ※docker以前のlxc用設定なのでもう使わない
  1. network install
  2. shell
# setting backup dir
mkdir ~/backup

# root
sudo -s
@aliyome
aliyome / lxcBase.md
Last active July 22, 2018 06:23
lxcゲスト初期設定
  1. http://localhost:5000/
  2. login admin/admin
  3. create user aliyome/
  4. create base(IP 10.0.3.240) and boot
  5. shell in host
## terminal setting
# byobu-enable
# echo export VTE_CJK_WIDTH=1 >> ~/.bashrc
@aliyome
aliyome / nginx.md
Last active July 22, 2018 06:23
lxc guest nginx
sudo -s

# check old version (maybe 1.1.19)
apt-cache show nginx | grep Version

#http://nginx.org/en/linux_packages.html
#
#Ubuntu:

ddbcのpostgresql対応が思いの外しょぼかったので頓挫

#server
echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main >> /etc/apt/sources.list
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt-get update
apt-get install postgresql
# root
sudo -s

# dependencies for building mono
apt-get install -y libpng3 libpng3-dev libtool libtiff4 libtiff4-dev libexif12 libexif-dev libgif4 libgif-dev libpango1.0-dev libatk1.0-dev libgtk-3-0 libgtk-3-dev bison automake autoconf make gcc gtk-sharp2 build-essential xorg-dev libfreetype6 libfontconfig libfontconfig-dev gettext libglib2.0-dev git mono-complete libjpeg-dev libjpeg8-dev libjpeg-turbo8-dev

# install llvm
#echo deb http://llvm.org/apt/precise/ llvm-toolchain-precise main >> /etc/apt/sources.list
#echo deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise main >> /etc/apt/sources.list