View gist:2289547
1 2 3 4 5 6 7
$.ajax({
type: 'HEAD',
url: '/',
success: function(data, textStatus, jqXHR){
log( new Date(jqXHR.getResponseHeader('Date')) );
}
});
View gist:1596077
1 2 3 4 5 6 7 8 9 10
var WHITE_PAWN = 0x01;
var WHITE_KNIGHT = 0x02;
var WHITE_KING = 0x03;
var WHITE_BISHOP = 0x05;
var WHITE_ROOK = 0x06;
var WHITE_QUEEN = 0x07;
 
var BLACK_PAWN = 0x09;
var BLACK_KNIGHT = 0x0A;
var BLACK_KING = 0x0B;
View gist:1595834
1 2 3 4 5
Decimal 2 = 00000010 Binary
Decimal 1 = 00000001 Binary
Decimal 0 = 00000000 Binary
Decimal -1 = 11111111 Binary
Decimal -2 = 11111110 Binary
View gist:1594941
1 2 3 4
Decimal 62 = 0111110 Binary
Decimal 63 = 0111111 Binary
Decimal 64 = 1000000 Binary
Decimal 65 = 1000001 Binary
View gist:1593251
1 2 3
if (row > 0 && row < 8 && column > 0 && column < 8 ){
// valid move
}
View gist:1593175
1 2 3 4 5 6 7
0x07 = 7
0x06 = 7 - 1
0x05 = 7 - 1 - 1
0x04 = 7 - 1 - 1 - 1
0x03 = 7 - 1 - 1 - 1 - 1
0x02 = 7 - 1 - 1 - 1 - 1 - 1
// etc
Something went wrong with that request. Please try again.