This file contains 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
var _, D; | |
(_ = function(){return this["trela".match(/\w/g)["reverse"]().join("")];})[false] = "jonas"; | |
_()(_[ (_(_)===D )]); |
This file contains 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
#include <stdio.h> | |
#define ALIGN_OF(t) ((int)(sizeof(struct{char c; t x;}) - sizeof(t))) | |
int main() | |
{ | |
printf("char: %d\n", ALIGN_OF(char)); | |
printf("short: %d\n", ALIGN_OF(short)); | |
printf("int: %d\n", ALIGN_OF(int)); | |
printf("long: %d\n", ALIGN_OF(long)); |
This file contains 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
function GetBit(const Value: DWord; const Bit: Byte): Boolean; | |
begin | |
Result := (Value and (1 shl Bit)) <> 0; | |
end; | |
function EnableBit(const Value: DWord; const Bit: Byte; const TurnOn: Boolean): DWord; | |
begin | |
Result := (Value or (1 shl Bit)) xor (Integer(not TurnOn) shl Bit); | |
end; |
NewerOlder