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
var canvas; | |
var gl; | |
var program; | |
function createGlContext() | |
{ | |
canvas = document.getElementById("container"); | |
gl = canvas.getContext("webgl"); | |
} |
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
# http://thelucid.com/2012/01/04/naming-your-terminal-tabs-in-osx-lion/ | |
function tabname { | |
printf "\e]1;$1\a" | |
} | |
function winname { | |
printf "\e]2;$1\a" | |
} |
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
git config --global alias.log-graph "log --pretty=format:'%C(yellow)%h%Creset %C(cyan)%an%Creset %s | |
|______ %C(green)%ad%Creset %C(magenta)%d%Creset' --date=iso --graph" |
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
# doxygenはソース中の改行を空白一文字に変換してしまう。 | |
# 日本語でドキュメントを書いている場合は | |
# これによって文章中に余計な空白が追加されることになって嬉しくない。 | |
# | |
# このinput_filterは、 | |
# //!という行形式のコメントが連続するドキュメントに対して、最後の行以外に<br>を付加する | |
# /*! */または/** */という複数行形式のドキュメント対して、 | |
# (先頭行/最後の行/空白行)以外に<br>を付加する。 | |
# また、先頭行が/*!あるいは/**だけではなくテキストが存在している場合は先頭行にも<br>を付加する | |
# |
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
// perlin_noise_cpp.cpp | |
// http://postd.cc/the-laws-of-shitty-dashboard-2/ | |
#include <cassert> | |
#include <cstdint> | |
#include <algorithm> | |
#include <memory> | |
#define UNICODE |
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
// DrawBitmap.cpp | |
// バイト列にビットマップデータを書き込んでウィンドウに表示。 | |
#include <cassert> | |
#include <cstdint> | |
#include <algorithm> | |
#include <memory> | |
#define WIN32_LEAN_AND_MEAN // Windows ヘッダーから使用されていない部分を除外します。 | |
// Windows ヘッダー ファイル: |
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
;------------------------------------------------------------------------------ | |
; boost::string_ref | |
;------------------------------------------------------------------------------ | |
boost::basic_string_ref<char,*> { | |
children ( | |
#( | |
#([raw] : [$c.ptr_,!]), | |
#array(expr : $c.ptr_[$i], size : $c.len_) | |
) | |
) |
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
#include <iostream> | |
template<int N> | |
struct sum | |
{ | |
enum { value = N + sum<N-1>::value }; | |
}; | |
template<> |
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
[[起動時のダイアログ]] | |
************************************************************************************* | |
function vital#of の処理中にエラーが検出されました: | |
行 10: | |
E117: 未知の関数です: vital#_42446ba^M#new | |
E15: 無効な式です: vital#_{ver[0]}#new() |
NewerOlder