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
| original_list = [[1, 2, 3], [4, 5], [6, 7, 8, 9]] | |
| flattened_list = [element for sublist in original_list for element in sublist] |
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
| static ConstructorHelpers::FObjectFinder<UMaterial> MaterialFinder(*SelectionMaterialPath); | |
| if (MaterialFinder.Succeeded()) { | |
| SelectionDecalMaterial = MaterialFinder.Object; | |
| SelectionDecalMaterialInstance = UMaterialInstanceDynamic::Create(SelectionDecalMaterial, this); | |
| SelectionDecal = CreateDefaultSubobject<UDecalComponent>(TEXT("SelectionDecal")); | |
| SelectionDecal->AttachTo(RootComponent); | |
| SelectionDecal->SetDecalMaterial(SelectionDecalMaterialInstance); | |
| } |
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
| for i in range(9) | |
| execute 'nmap <leader>' . i . ' ' . i . 'gt' | |
| endfor |
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
| it('returns OPTIONS response if origin header is capitalized', (done) => { | |
| const handler = function (request, reply) { | |
| return reply(Boom.badRequest()); | |
| }; | |
| const server = new Hapi.Server(); | |
| server.connection({ routes: { cors: true } }); | |
| server.route({ method: 'GET', path: '/', handler: handler }); |