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
StringWriter sw = new StringWriter(); | |
PrintWriter pw = new PrintWriter(sw); | |
new Throwable().printStackTrace(pw); | |
String stackTraceString = sw.toString(); |
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
// init window. | |
NSWindow *window = [[NSWindow alloc] | |
initWithContentRect:NSMakeRect(0, 0, 100, 100) | |
styleMask:NSBorderlessWindowMask | |
backing:NSBackingStoreBuffered | |
defer:NO]; | |
// configure window. | |
[window setLevel:NSPopUpMenuWindowLevel]; | |
[window setHasShadow:NO]; |
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
#ifndef OPENSSL_NO_ENGINE | |
ENGINE_cleanup(); | |
#endif | |
CRYPTO_cleanup_all_ex_data(); | |
ERR_free_strings(); | |
ERR_remove_state(0); | |
EVP_cleanup(); |
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
SSL_library_init(); | |
SSL_load_error_strings(); | |
RAND_poll(); | |
while (RAND_status() == 0) { | |
unsigned short rand_ret = rand() % 65536; | |
RAND_seed(&rand_ret, sizeof(rand_ret)); | |
} |
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
git checkout-index -a -f --prefix=export/ |
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
#ifndef NULL | |
#ifdef __cplusplus | |
#define NULL 0 | |
#else | |
#define NULL ((void *)0) | |
#endif | |
#endif |
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
#ifndef NULL | |
#ifdef __cplusplus | |
#define NULL 0 | |
#else | |
#define NULL ((void *)0) | |
#endif | |
#endif |
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
#ifdef __cplusplus | |
#ifdef __GNUG__ | |
#define __DARWIN_NULL __null | |
#else /* ! __GNUG__ */ | |
#ifdef __LP64__ | |
#define __DARWIN_NULL (0L) | |
#else /* !__LP64__ */ | |
#define __DARWIN_NULL 0 | |
#endif /* __LP64__ */ | |
#endif /* __GNUG__ */ |
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
#ifndef NULL | |
#if !defined(__cplusplus) | |
#define NULL ((void *) 0) | |
#else | |
#if defined(__GNUG__) && defined(__GNUC__) && __GNUC__ >= 4 | |
#define NULL __null | |
#else | |
#if defined(__LP64__) | |
#define NULL (0L) | |
#else |
NewerOlder