-
Command + N Generate...
-
Command + E Recent files
-
Command + Shift + backspace - идет назад по истории изменений
-
Command + Alt + V создать новую переменную из выражения
- сложные выражения
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
// https://codereview.stackexchange.com/questions/165120/printing-hex-dumps-for-diagnostics | |
// http://coliru.stacked-crooked.com/a/95da32e8ef05d557 |
I hereby claim:
- I am stanislaw on github.
- I am stanislaw (https://keybase.io/stanislaw) on keybase.
- I have a public key ASCiwHfn7gYVr7FqXxfrYIBZmpQYEeW9PkFBUVwhQxx7Ygo
To claim this, I am signing this object:
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
-- I am building a cancer treatment machine. The machine can emit two types of | |
-- beams; for simplicity let’s just call them A and B. There are two different | |
-- plates that can be placed in front of the beam; let’s call them 1 and 2. When | |
-- you turn the machine on it always starts ups with beam set to A and plate set | |
-- to 1. That is the initial state. | |
-- For safety reasons we never want the machine to be at beam B and plate 2. | |
-- If this every happens a deadline dose of radiation will be emitted and it | |
-- will kill the patient. | |
-- But all of the other combinations of beams and plates are valid. |
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
// Resolve the relocations for all symbols we currently know about. | |
void RuntimeDyldImpl::resolveRelocations() { | |
MutexGuard locked(lock); | |
// Print out the sections prior to relocation. | |
DEBUG( | |
for (int i = 0, e = Sections.size(); i != e; ++i) | |
dumpSectionMemory(Sections[i], "before relocations"); | |
); |
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
#import <Foundation/Foundation.h> | |
@interface Communicator : NSObject <NSStreamDelegate> { | |
@public | |
NSString *host; | |
int port; | |
} | |
- (void)setup; |
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
// clang -fobjc-arc -framework Foundation runtime-class.m | |
#import <Foundation/Foundation.h> | |
#import <objc/runtime.h> | |
@interface Person : NSObject | |
- (id)initWithFirstName: (NSString *)firstName lastName: (NSString *)lastName age: (NSUInteger)age; |
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> | |
#include "gtest/gtest.h" | |
class MinimalistPrinter : public ::testing::EmptyTestEventListener { | |
void OnTestProgramEnd(const ::testing::UnitTest& unit_test) { | |
std::cout << "elapsed time: " << unit_test.elapsed_time() << "\n"; | |
} | |
}; |
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
mull (master)*$ make -f Makefile.macos generate_fixtures | |
cd lab && make synchronize_fixtures | |
cd ./custom_test/ && make synchronize_fixtures | |
mkdir -p ../../unittests/fixtures/custom_test/distance/ | |
cp ./build/*.ll ../../unittests/fixtures/custom_test/distance/ | |
cp ./build/*.bc ../../unittests/fixtures/custom_test/distance/ | |
cd ./google_test/google_test/ && make synchronize_fixtures | |
mkdir -p ../../../unittests/fixtures/google_test/google_test/ | |
cp build/*.bc ../../../unittests/fixtures/google_test/google_test/ | |
cd ./simple_test/mutation_operators/and_or_replacement && make synchronize_fixtures |