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
#!/bin/sh -- | |
# \ | |
exec jq -nsRrf "$0" --args -- "$@" | |
def path2gronpath: | |
reduce .[] as $k ("json"; . + ($k | | |
if type == "number" or . == "" or test("^[0-9]|[^0-9a-zA-Z_]") | |
then @json "[\(.)]" | |
else ".\(.)" | |
end)); |
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
NSError *error = nil; | |
void (^block)(NSError **error); | |
block = ^(NSError **blockError) | |
{ | |
NSArray *array = [NSArray arrayWithObject:@"hello"]; | |
[array enumerateObjectsUsingBlock:^(id object, NSUInteger index, BOOL *stop) { | |
if ( blockError != NULL ) | |
{ |