This file contains hidden or 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
| iPhone使い倒し系ゴミ本読了後有益Tipsまとめ | |
| タップテクニック | |
| ピッチイン・ピッチアウト | |
| 拡大縮小の指の動きのこと | |
| シェイク | |
| iPhone振ると直前の動作取り消しになる | |
| Safari | |
| ダブルタップ = 画面にあわせて自動拡大(縮小)便利 |
This file contains hidden or 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 DailyFriendList < Sequel::Model | |
| many_to_one :player | |
| set_schema do | |
| primary_key :id | |
| foreign_key :player_id, :players | |
| foreign_key :friend_id, :players | |
| date :date | |
| index [:player_id, :friend_id, :date], :unique => true | |
| end | |
This file contains hidden or 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
| #!env ruby | |
| # | |
| # ganalytics.rb | |
| # | |
| # 詳細: | |
| # Google Analyticsのコードを</head>の直前に埋め込むコード | |
| # すでに埋め込まれてた場合は埋め込みません | |
| # | |
| # 使い方: |
This file contains hidden or 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
| Linuxプログラミング 例題で学ぶUNIXプログラミング環境のすべて | |
| ピータードラッカー「自己実現」が分かる本 | |
| 徹底抗戦 | |
| リファクタリング | |
| Java言語で学ぶデザインパターン入門 | |
| The Little Schemer | |
| 入門OpenSSH | |
| 実践ハイパフォーマンスMySQL | |
| 成功するソフトウェア開発 -CMMによるガイドライン | |
| 詳解UNIXプログラミング |
This file contains hidden or 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
| sin関数の魅力に迫る! | |
| これは超ハイテンションでsin関数の魅力に迫るという文章です | |
| sin関数は入力された角度(ラジアン)を元に、-1から1までのあいだの値を返却します | |
| sin関数は周期的な特徴があって入力する値を増やしていくと... | |
| ----------------- | |
| sin(0) = 0 | |
| sin(1) = 0.1 | |
| sin(2) = 0.14 | |
| ... |
This file contains hidden or 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
| def steamid_to_friendid(steamid) | |
| parts = steamid.split(":") | |
| raw_id = parts.last.to_i | |
| second_id = parts[1].to_i | |
| raw_id * 2 + 76561197960265728 + second_id | |
| end | |
This file contains hidden or 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
| /* | |
| サイコロを二回ふり、その出目の合計値を求めます。 | |
| そして上記動作を100万件実行したときに、どの目が多く出ているか確認するためのプログラムです | |
| ちなみに、C言語のrand関数は合同線形法なので、一様乱数を出力することを確認済みです | |
| 出力結果例 | |
| $ g++ central_limit_theorem.cc | |
| $ ./a.out | |
| [00] 00000000 | |
| [01] 00000000 | |
| [02] 00027631 |
This file contains hidden or 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
| SourcePawn慣用句集 | |
| //=============================== | |
| // 日常用例集 | |
| //=============================== | |
| *文字列の結合 | |
| buffer変数に追記する形の例 | |
| ------------------------ | |
| new String:buffer[256]; |
This file contains hidden or 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
| // HBITMAPからデータを取得 | |
| BITMAP bmp; | |
| ::GetObject(hBitmap, sizeof(BITMAP), &bmp); | |
| int len = bmp.bmWidth * bmp.bmHeight * (bmp.bmBitsPixel / 8); | |
| BYTE *p = (BYTE *)malloc(len * sizeof(BYTE)); | |
| ::GetBitmapBits(hBitmap, len, p); | |
| int width = bmp.bmWidth; | |
| int height = bmp.bmHeight; | |
| int depth = 8; |
This file contains hidden or 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
| /* | |
| * デスクトップのスクリーンショットを撮影して | |
| * 256カラーインデックスPNGに減色後、圧縮します | |
| */ | |
| #include <Windows.h> | |
| #include "Screenshot.h" | |
| #include <stdio.h> | |
| #include "png.h" | |
| #pragma comment(lib, "libpng15.lib") |