ToDo:
Æɤ߽ª¤ï¤Ã¤Æ¤ß¤ë¤È¤Ê¤ó¤«¤ï¤ê¤È¤É¤¦¤Ç¤â¤¤¤¤¤Ê¤¡¡Ä
union ¤ÎÏᣴο´¤Î¼ÂÁõ¤Î¾Ò²ð¤Ï̵¤·¤Ã¤¹¤«¡£
std::string ¤ÎÏᣤɤ¦¤Ç¤â¤¤¤¤Ïäò¤¨¤é¤¤¤·¤Ä¤³¤¯Â³¤±¤ë¤Ê¤¡¡£
¤¢¤ÈÈÆÍÑ¥³¡¼¥ë¥Ð¥Ã¥¯¤È¤«¤â¤É¤¦¤Ç¤â¤¤¤¤¤«¤Ê¡£
¤¦¡¼¤ó¤Ê¤ó¤«¤Ê¤¡¡£ ½øÈפÏËÜÅö¤ËÌÌÇò¤«¤Ã¤¿µ¤¤¬¤·¤¿¤ó¤À¤±¤É¤Ê¡£
¼¡²¿Æɤ⡣
¤³¤ì¤¬¤ª¤â¤·¤í¤½¤¦¤«¡£ http://d.hatena.ne.jp/w_o/20061106#p4
ÀѤóÆÉŪ¤Ë¤Ï Binary Hacks (ÀѤà¤Ê¤è¡ª(¤¤¤ä°ì±þººÆɤȤ«¤Ê¤ó¤À¤ÇÆɤó¤À¤ó¤Ç¤¹(¤¢¤é¤¿¤á¤Æ¤æ¤Ã¤¯¤êÆɤߤ¿¤¤¤È))) ¤È 30ÆüOSËÜ¤È TRON ¡£¤·¤Ð¤é¤¯¤Ï TRON ¤«¤Ê¡£
(02:04)
¡Ö¡ª¡×¤Ë¤Ï¼ç¤Ë»°¤Ä¤Î»È¤¤¤«¤¿¤¬¤¢¤ê¤Þ¤¹¡£¥Þ¥¹¥¿¡¼¤·¤Þ¤·¤ç¤¦¡£
¾åµé¼Ô¤Ï¡Ö¡ª¡©¡×¤ä¡Ö¡Ä¡ª¡×¤â»È¤¤¤ï¤±¤ë¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£ ¤µ¤é¤Ë¾®Ê¸»ú¤â»È¤¦¤ÈÎɤ¤¤Ç¤¹¡£ ¡Ö...!¡×¤Ï¤Ê¤«¤Ê¤«É÷¾ð¤¬¤¢¤Ã¤Æ¤è¤í¤·¤¤¤Ç¤¹¡£
(02:25)
Îɤµ¤²¡¼¤È»×¤Ã¤¿¤Î¤Ç¤Ä¤±¤Æ¤ß¤¿¡£
<input type=hidden name=ie value=EUC-JP> <input type=hidden name=oe value=EUC-JP>
¤ò¤Ä¤±¤ë¤È EUC-JP ¤Î¥µ¥¤¥È¤Ç¤â»È¤¨¤ë¤ß¤¿¤¤¤À¤è¡ª ¤ª¤ä¤¯¤À¤Á¤À¤Í¡ª
(03:07)
void»á¤ÏÀµÄ¾ËͤÏñ¤ËÀ³Ê°¤¤ (¤³¤ì¤ÏËÍŪ¤Ë¤Ï¥Þ¥¤¥Ê¥¹Í×°ø¤Ç¤Ï¤Ê¤¤¤ó¤À¤±¤É) Êý¤À¤È»×¤Ã¤Æ¤ë¤ó¤À¤è¤Ê¤¡¡£ ¤Ê¤ó¤«ÑÜÄ¢Ì̸Τˤۤ²¤Û¤²¡¢¤ß¤¿¤¤¤Êɾ²Á¤Ï¥Û¥ó¥È¤«¤Í¤È¡£
¤Ä¡¼¤Î¤Ï¡¢¡Ö¼è¤ê´¬¤¡×¤Î´Ö°ã¤¤¤Ï»ØŦ¤·¤Ê¤¤¡¢ ¸À¤Ã¤Æ¤ë¤³¤È°Æ³°´Ö°ã¤Ã¤Æ¤ë¡¢¤Î2ÅÀ¤Ë¤ª¤¤¤Æ¡£ ËÍÀ³Ê°¤¤¤Î¤Ç ¥É¥ó¥Ñ¥Á¤¬¤¢¤ë¤È¤Ò¤¿¤¹¤é¸«¤Æ¤ë¤ï¤±¤À¤±¤É¡¢ Á°¤Ü¤ó¤ä¤ê¸«¤Æ¤¿ÏäÀ¤È C99 Âбþ¤·¤Æ¤Ê¤¤¥³¥ó¥Ñ¥¤¥é¤Ê¤ó¤Æ̵¤¤¤È¤«¡¢ ¤¢¤È¤Ê¤ó¤« CRC ¤Î¤¢¤ì¤â¤¢¤ì¤À¤Ã¤¿¤Ê¡£
¤¿¤Þ¤Ë otsune ¤µ¤ó¤Î¥Ñ¥ï¡¼¥¢¥Ã¥×¤ß¤¿¤¤¤Ë ¸ì¤é¤ì¤ë¤Î¤ò¸«¤ë¤±¤É¡¢ ËÍŪ¤Ë¤Ï otsune ¤µ¤ó¤ÎÊý¤¬¤Ï¤ë¤«¤Ë ´í¤Ê¤²¤¬¤Ê¤¯¸«¤¨¤ë¤Ê¤¡¡£ ɽ¸½¤à¤º¤«¤·¤¤¤±¤É¡¢ ¤Á¤ã¤ó¤È¼«Ê¬¤ÎÀìÌçÎΰè¤Ç¤ä¤Ã¤Æ¤ë¤È¤¤¤¦¤Î¤â¤¢¤ë¤·¡¢ ¤Ò¤¯¤³¤È¤â¤Ç¤¤ëÊ·°Ïµ¤¤ß¤¿¤¤¤Ê¤½¤¦¤¤¤¦¡£
¤Þ¤¡¥É¥ó¥Ñ¥Á¤ÏÌÌÇò¤¤¤Î¤Ç¤Ê¤ó¤Ç¤âÎɤ¤¡£
(05:01)
¥³¡¼¥Ò¡¼¥á¡¼¥«¡¼¤Ç²¹ÀôÍñ¤òºî¤Ã¤¿¤ï¤±¤À¤±¤É¡¢ ¤½¤Î»þÀ¸À®¤µ¤ì¤¿¤ªÅò¤Ç¤ªÃã¤òÆþ¤ì¤è¤¦¤È»×¤Ã¤¿¤ï¤±¤À¤±¤É¡¢ ¥³¡¼¥Ò¡¼¤ÎÌ£¤¬¤·¤ß¤Ä¤¤¤Æ¤Æ¤¹¤ó¤´¤¯¤Þ¤º¤¤¤ªÃã¤Ë¤Ê¤Ã¤¿¡£
¤¢¤ì¤Ï¤ä¤Ð¤¤
(05:03)
ºÇ¶á¥×¥í¥È¥¿¥¤¥×Ǿ¤Ê¤Î¤Ç JS¤È¤«¤ÎÆ°ºî¤ÎÊý¤¬¼«Á³¤Ë»×¤¨¤Æ¤·¤Þ¤¦¤Î¤Ç¤¢¤Ã¤¿¡£
http://d.hatena.ne.jp/w_o/20061202#p4
Io> Nanika := Object clone do( i:=40; m:=method(i) ) ==> Nanika_0x8d08150: i = 40 m = method(...) type = "Nanika" Io> Nanika2 := Object clone do( i:=100 ) ==> Nanika2_0x8d2e5d8: i = 100 type = "Nanika2" Io> Nanika2 m := Nanika m ==> 40 Io> Nanika2 m := Nanika getSlot("m") ==> method(i) Io> Nanika2 m ==> 100
ÅÓÃ椦¤Ã¤«¤êɾ²Á¤·¤Á¤ã¤Ã¤Æ 40 ¤¬½Ð¤¿¤Î¤ÏÈëÌ©¡£
(05:08)
¥Ü¥´¥½¡¼¥È¤ËÊѤ¨¤ë¤È¤É¤¦¤À¤í¤¦¤«¡£
int main(int argc, char* argv[]) { if (argc == 1) return 1; int s = atoi(argv[1]); int* ints = (int*)malloc(sizeof(int)*s); srand(time(0)); /* initialize */ for (int i = 0; i < s; i++) { ints[i] = rand(); } int sorted = 0; for (;!sorted;) { for (int i = 0; i < s; i++) { int r = rand()%(s-i); int t = ints[r]; ints[r] = ints[i]; ints[i] = t; } sorted = 1; for (int i = 1; i < s; i++) { sorted &= ints[i-1] < ints[i]; } } return 0; }
¤¿¤Ã¤¿10Í×ÁǤǤâ·ë¹½¤¢¤ä¤·¤¤¤è¡ª
i@u ~/test> time ./a.out 10 ./a.out 10 0.64s user 0.00s system 98% cpu 0.648 total i@u ~/test> time ./a.out 10 ./a.out 10 9.68s user 0.02s system 95% cpu 10.117 total i@u ~/test> time ./a.out 10 ./a.out 10 4.05s user 0.02s system 96% cpu 4.230 total
(05:19)
(05:33)
parser.ry ¤ò¤¤¤¸¤Ã¤¿¡£ :nick!user@foo/bar/baz ¤ß¤¿¤¤¤Ê ¤Î¤òÁ÷¤Ã¤Æ¤¯¤ë»Ò¤Îȯ¸À¤¬Æɤá¤Æ¤Ê¤«¤Ã¤¿¤Î¤Ç¡Ä
# when /\A#{PATTERN::SHORTNAME}(?:\.#{PATTERN::SHORTNAME}|\.)*/ # yield(:HOSTNAME, $&) when /\S+/ yield(:HOSTNAME, $&)
(17:20)
º£¤Ë¤·¤Æ»×¤¦¤È¡¢
http://jarp.does.notwork.org/diary/200609b.html#200609192
¤Î
require"open-uri";puts open("http://tinyurl.com/gjxs8").read[5..-8]
¤è¤ê¤â¡¢ bigdecimal/math ¤ò»È¤¦¤è¤ê¤â¡¢ û¤¤²óÅú¤Ë¤Ê¤Ã¤Æ¤ë¤ï¤±¤Ç¡¢¤¹¤´¤¤¤Ê¤¢¤È¡£
(19:31)
(defun wl-draft-memo () (interactive) (wl-draft '("To: hogehoge@hogehoge.hogehoge"))) (global-set-key "\C-q\C-m" 'wl-draft-memo)
(22:21)
»×¤¤½Ð¤·¤¿¤è¤¦¤ËµÏ¿¡£
DS ¤Ç°ÆÆ⤵¤ì¤ë¤Î¤ÏÌÌÇò¤«¤Ã¤¿¡£ ÆâÍƤϤʤ󤫡¢°Æ³°¤¿¤¤¤·¤¿¤³¤È¤Ê¤¤¤È¤¤¤¦¤«¡¢ ¥¨¥Ã¥·¥ã¡¼¤Ã¤Æ¤¢¤ó¤Þ¤êÇ÷ÎϤߤ¿¤¤¤Ê¤Î¤Ê¤¤¤Ê¤¡¤È»×¤Ã¤¿¡£ ¶µ²Ê½ñ¤Ç¸«¤Æ¤âÊѤï¤é¤ó¤È¤¤¤¦¤«¡£ ¤¢¤ÈºîÉʤοô¤¬¾¯¤Ê¤¯¤Æ¡¢ °ìÈÖÌÌÇò¤¤ñÙ¤·³¨·Ï¤ÎÉôʬ¤Ï ¤É¤Ã¤«¤Ç¸«¤¿¤è¤¦¤Ê¤Î¤¬Â¿¤¯¤Æ¿·Á¯¤µ¤â̵¤¤¤Ê¤¡¤È¤«¡£ ¤Þ¤¡ÈDzè¤È¤«»þ´Ö¤«¤«¤Ã¤ÆÂçÊѤ½¤¦¤À¤Ê¤¡¡£
¤¢¤ÈÊ¿ÆüÃë´Ö¤È¤«¤Ê¤Î¤Ç¶õ¤¤¤Æ¤¿¡£
(23:02)
Á° | 2006ǯ 12·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£