I hereby claim:
- I am CocoaPriest on github.
- I am konst (https://keybase.io/konst) on keybase.
- I have a public key whose fingerprint is 030D 6350 6B5A AE72 D95A E4D2 E45C C852 0F30 DA98
To claim this, I am signing this object:
| import OpenAI from "openai"; | |
| import stream from "stream"; | |
| import { Transform } from "stream"; | |
| import util from "util"; | |
| const pipeline = util.promisify(stream.pipeline); | |
| // Save your `OPENAI_API_KEY` in Lambda env. | |
| const openai = new OpenAI({ | |
| apiKey: process.env.OPENAI_API_KEY, | |
| }); |
I hereby claim:
To claim this, I am signing this object:
| @property (nonatomic, strong) dispatch_source_t timer; | |
| . . . | |
| self.timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, dispatch_get_main_queue()); | |
| self.timer = nil; // EXC_BAD_INSTRUCTION |
| // ------------- с предикатом | |
| NSPredicate *predicate = [NSPredicate predicateWithFormat:@"groupID >= %d", 1]; | |
| NSArray *filteredArray = [myArray filteredArrayUsingPredicate:predicate]; | |
| // ------------- с блоками | |
| NSIndexSet *filteredIndexes = [myArray indexesOfObjectsPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop) { | |
| if(obj.groupID >= 1) |