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
Class Artie | |
include Vehicle::Bike | |
include Vehicle::Car | |
fine_weather :ride_bike | |
nasty_weather :drive_car | |
private | |
def ride_bike | |
... |
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
def printPyramid(num): | |
matrix = list(map(lambda i: num-abs(i), list(range(num-1, -num, -1)))) | |
for i in matrix: | |
print(''.join(str(e) for e in matrix[i-1:(len(matrix)-(i-1))]).center(len(matrix), ' ')) |
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
//.h file | |
void Init() override; | |
void Shutdown() override; | |
bool Tick(float DeltaSeconds); | |
FDelegateHandle TickDelegateHandle; |