タグ

2009年10月21日のブックマーク (4件)

  • #if 0ハックすごくね?すげーってw - Seasons.NET

    #If 0ってC,C++では、#endifまで問答無用でコメントにしますが、 これを使ったハックがすごく便利。 元ネタ http://gpwiki.org/index.php/SDL:Tutorial:Using_SDL_net #if 0 #!/bin/sh gcc -o a a.c exit #endif int main( void ) { printf( "Hello\n"); return 1; } これを保存して、実行属性をつけてから(chmod 755とか) ターミナルで、 # ./a.c と打ち込むと、 aという実行ファイルが生成される。 んで、./aと打ち込むと Helloと表示される。 今までは、Makefileか直接、gcc -o a a.cとかやっていた作業が、 ソースコード+Makefileの代わりになるわけ。 なぜこんな事ができるかってーと、 shのシェルスクリ

    #if 0ハックすごくね?すげーってw - Seasons.NET
    paella
    paella 2009/10/21
    #if0の中にシェルスクリプトでコンパイルコマンドを記述しておけばポータビリティの高いソースコードになるハック。これとDoxygen併用すれば完璧じゃないか。
  • 多種多様な無料のPhotoshopのブラシがダウンロードできる -Photoshop Free Brushes

    オリジナルの高品質で無料のPhotoshopのブラシがダウンロードできるPhotoshop Free Brushesを紹介します。 Photoshop Free Brushes ダウンロードできるPhotoshopのブラシはどれもユニークなもので、Photoshop Free Brushesのチームで作成されたものとのことです。 登録されているブラシのサイズは2500pxと高解像度のものが多く、他のサイトでは見られない種類のものも多数登録されています。 ブラシはカテゴリ分けされており、下記にいくつか紹介します。

    paella
    paella 2009/10/21
    サイトの紹介。使うことはないかもしれないけれど、とりあえず。
  • cocos2d v0.8.2リリース - Seasons.NET

    正式版リリースです。 ダウンロード先 It’s easier to start coding a game: Added Box2d and Chipmunk templates Faster loading times for TMX tiled maps TTF font support via FontLabel New Ease actions: Elastic, Bounce and Back Optimized Director for SDK v3.1 or newer: DisplayLink director 1)Box2d , Chipmunkのテンプレートがゲーム用に簡単に使えるようになった。 2)TMX tiled mapのローディングが早くなった。 3)TTFフォントをサポートしました。 4)New Actionが追加:Elastic,Bounce,Back 5)

    cocos2d v0.8.2リリース - Seasons.NET
    paella
    paella 2009/10/21
    TTFフォントをサポートしていたり、プロジェクトテンプレートが用意されたり、密度を濃くしたアップデート。
  • CUDA GPUs - Compute Capability

    Are you looking for the compute capability for your GPU, then check the tables below. You can learn more about Compute Capability here. NVIDIA GPUs power millions of desktops, notebooks, workstations and supercomputers around the world, accelerating computationally-intensive tasks for consumers, professionals, scientists, and researchers. Get started with CUDA and GPU Computing by joining our free

    CUDA GPUs - Compute Capability
    paella
    paella 2009/10/21
    CUDAに対応したGPU一覧。モバイル向けは8400M/8600M以降の模様。