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
docker run --rm -v $(pwd):/app -w /app composer install |
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/bash | |
# URL | |
url="http://api.hamsterkombat.io/clicker/tap" | |
# Header | |
auth_token="1717800404694ETA7Ad7uD6O1zNDxDEbaDyHdsferwrlIIVzx0b3232s1jBmOvH0zgnC43CzVat0115139439" | |
header="Authorization: Bearer $auth_token" | |
# Loop to send POST request once per second |
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
<?php | |
class LanguageGameCommand extends BaseCommand { | |
/** | |
* The console command name. | |
* | |
* @var string | |
*/ | |
protected $name = 'game:play'; |
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
DELIMITER $$ | |
DROP FUNCTION IF EXISTS calc_ratio; | |
CREATE FUNCTION calc_ratio(width int, | |
height int) | |
RETURNS VARCHAR(10) | |
DETERMINISTIC | |
BEGIN | |
DECLARE ratio VARCHAR(10); |