Skip to content

Instantly share code, notes, and snippets.

var parse_color_str = function(color_str){
var matches = color_str.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i);
if(!matches) return {r:0xff, g:0xff, b:0xff};
return {
r : parseInt(matches[1], 16),
g : parseInt(matches[2], 16),
b : parseInt(matches[3], 16)
};
}
#fixed {
position: fixed;
left: 100px;
top: 100px;
}
* html #fixed {
position: absolute;
left: expression((documentElement.scrollLeft || document.body.scrollLeft) + 100 + 'px');
top: expression((documentElement.scrollTop || document.body.scrollTop) + 100 + 'px' );
giko classics
∧ ∧
( ゚Д゚)
(つ つ
__∧___________
      ∧ ∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
      ( ゚Д゚) <  ネタスレじゃねーぞ
/* weak keys */
{0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01},
{0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE},
{0x1F,0x1F,0x1F,0x1F,0x0E,0x0E,0x0E,0x0E},
{0xE0,0xE0,0xE0,0xE0,0xF1,0xF1,0xF1,0xF1},
/* semi-weak keys */
{0x01,0xFE,0x01,0xFE,0x01,0xFE,0x01,0xFE},
{0xFE,0x01,0xFE,0x01,0xFE,0x01,0xFE,0x01},
{0x1F,0xE0,0x1F,0xE0,0x0E,0xF1,0x0E,0xF1},
{0xE0,0x1F,0xE0,0x1F,0xF1,0x0E,0xF1,0x0E},