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
const audioSource = 'https://cdn.freesound.org/previews/533/533869_5828667-lq.mp3' | |
const cityCode = 56; // São Paulo | |
const formattedMaxDate = '2023-11-30'; // YYYY-MM-DD | |
const maxNumberOfCandidateDates = 4; //avoid throttling | |
const language = 'pt-br'; | |
const sessionNumber = 38681568; | |
const minIntervalBetweenFetchesInMinutes = 2; | |
const randomizedIntervalBetweenFetchesInMinutes = 2; | |
const secondsBetweenDateTimeFetchCalls = 10; |
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
using namespace std; | |
int main() | |
{ | |
int a = 10; | |
int& b = a; // criação do apelido "b" para a variável "a"; | |
cout << "a: " << a << "; b: " << b << "\n"; // a: 10; b: 10 | |
b = 20; | |
cout << "a: " << a << "; b: " << b << "\n"; // a: 20; b: 20 | |
a = 30; |
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
export class MainScene extends Phaser.Scene { | |
//... | |
public async create(): Promise<void> { | |
EventManager.emit(Events.GAME_BEGAN); | |
new BoardHandler({scene: this}); | |
new AliveBlockHandler({scene: this}); | |
new InputManager({scene: this}); | |
EventManager.emit(Events.BOARD_CREATE_NEW_BLOCK); | |
} |
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
export class MockedClass { | |
public instanceMethod(): string { | |
return "instance"; | |
} | |
public static staticMethod(): string { | |
return "static"; | |
} | |
} |