他の言語をある程度知っている人はこれを読めばD言語の基礎をマスターでき,D言語の氷山の一角くらいは知ることができると思います.対象バージョンはdmd 2.059です.
ASCIIかUTFしか受け付けません.それ以外の文字コードで書くとコンパイルエラーになります.
D言語のmainはCとは違い以下のようなシグネチャです.
" A ref source for godoc. | |
" Version: 0.0.1 | |
" Author : mattn <mattn.jp@gmail.com> | |
" License: Creative Commons Attribution 2.1 Japan License | |
" <http://creativecommons.org/licenses/by/2.1/jp/deed.en> | |
let s:save_cpo = &cpo | |
set cpo&vim | |
#!/bin/sh | |
set -e | |
cd $(dirname $0)/.. | |
opts="--prefix=/usr/local" | |
opts="$opts --with-features=huge" | |
opts="$opts --enable-multibyte" | |
opts="$opts --with-compiledby='tyru <tyru.exe@gmail.com>'" | |
#opts="$opts --enable-perlinterp" |
#!/bin/sh | |
conf() { | |
./configure \ | |
--with-features=huge \ | |
--with-compiledby="thinca <thinca@gmail.com>" \ | |
--enable-multibyte \ | |
--enable-gui=gtk2 \ | |
--enable-rubyinterp \ | |
--enable-pythoninterp \ |
require 'sinatra/base' | |
require 'rack/flash' | |
require 'warden' | |
require 'slim' | |
require 'sequel' | |
require 'sqlite3' | |
DB = Sequel.sqlite | |
DB.create_table :users do | |
primary_key :id |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
#compdef httpstatus | |
# | |
# httpstatus コマンド用zsh補完関数 | |
# | |
# このファイルfpathの通ったディレクトリに置きzshを再起動して下さい。 | |
# その際ファイル名を必ず _httpstatus として下さい。 | |
# | |
# $ cp _httpstatus /usr/local/share/zsh/site-functions | |
# $ exec zsh | |
# |
Vim Advent Calendar 2012の102日目(2013-03-12)の記事です。
W,E,BでのWORD移動を文節単位にする jasegment.vimを作りました。
Vim Advent Calendar 2012 の134日目の記事です。 昨日はmanga_osyoさんによる\(・ω・\)SAN値!(/・ω・)/ピンチ!でした。
前々回の著者によるVim Advent Calendarの記事にて、以下のような記述があったのをお覚えでしょうか。
SimCityを無事入手し、それをGentoo Linux上のWineで動作させるため数日間悪戦苦闘し、結局諦めてWindowsを購入しました。しかしオンボードのIntel HD 3000では動作速度が遅く、いまはグラフィックボードの購入を真剣に検討しています。Gentoo Linuxとデュアルブートする予定なので、LinuxからちゃんとGPGPUに使えるようなものにしたいですね。
というわけで購入しました。Radeon HD 7850 (2GB RAM) というやつです。ビデオカード業界には全く詳しくなく、調査するのにとても時間がかかりました。Video CardのVはVimのVです。我々はもっとこの分野にも精通する必要があるのではないか、と感じました。