- A
Charactershould have anameand ahealthpool. - A
Character'shealthis initialized at100and cannot go above this value. - A
Charactercan either bealiveordead- when it reaches0healthpoints. - A
CharactercanattackanotherCharacterand deal1damage point to its enemy'shealthif it isn't alreadydead. ACharactercannot attack itself... - A
CharactercanhealanotherCharacterand return1point to its ally'shealthpool. ACharactercan
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
| <?php | |
| // create a class User with : | |
| // name | |
| // age | |
| // create a class Customers extended from User | |
| // create a method pay() that simulate a customers paying | |
| Class User { | |
| protected $name; | |
| protected $age; |
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
| import openpyxl | |
| from tkinter import * | |
| from tkinter import filedialog | |
| def write_categories(sheet): | |
| categories = ["Titre", | |
| "Description", | |
| "Catégories", | |
| "Priorité", |
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
| # Created by https://www.gitignore.io/api/vagrant,phpstorm | |
| # Edit at https://www.gitignore.io/?templates=vagrant,phpstorm | |
| ### PhpStorm ### | |
| # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm | |
| # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
| # User-specific stuff | |
| .idea/**/workspace.xml | |
| .idea/**/tasks.xml |
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
| CREATE TABLE IF NOT EXISTS `users` ( | |
| `id` int NOT NULL AUTO_INCREMENT, | |
| `name` varchar(60) NOT NULL, | |
| `surname` varchar(60) NOT NULL, | |
| `email` varchar(60) NOT NULL, | |
| `phone` varchar(20) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ); | |
| CREATE TABLE IF NOT EXISTS `clients` ( |
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
| Jul 31, 2019 05:34:34.277 [0x7f510b7fe700] Débogage — Auth: authenticated user 1 as yolaan | |
| Jul 31, 2019 05:34:34.278 [0x7f504dffb700] Débogage — Request: [43.245.162.131:44039 (WAN)] POST /playQueues?includeChapters=1&continuous=0&includeLoudnessRamps=1&repeat=0&type=audio&shuffle=0&uri=library%3A%2F%2F415dca6a-8aa4-4e0a-ae2e-e0da5a617a74%2Fitem%2F%252Flibrary%252Fmetadata%252F152422&key=%2Flibrary%2Fmetadata%2F152423 (20 live) TLS GZIP Signed-in Token (yolaan) | |
| Jul 31, 2019 05:34:34.278 [0x7f504dffb700] Débogage — PlayQueue: 0 generated IDs compressed down to a 20 byte blob. | |
| Jul 31, 2019 05:34:34.289 [0x7f504dffb700] Débogage — PlayQueue: Start index: 0 End index: 5 Count: 6 | |
| Jul 31, 2019 05:34:34.289 [0x7f504dffb700] Débogage — PlayQueue: 6 generated IDs compressed down to a 36 byte blob. | |
| Jul 31, 2019 05:34:34.290 [0x7f504dffb700] Débogage — PlayQueue: Added 6 items in 0.0 sec. | |
| Jul 31, 2019 05:34:34.297 [0x7f510b7fe700] Débogage — Completed: [43.245.162.131:44039] 200 POST /playQueues?includeChapters=1&contin |
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
| Aug 03, 2019 08:10:47.327 [0x7f6ab6ffd700] Warning — NetworkServiceBrowser: Error sending out discover packet from 172.17.1.25 to 239.255.255.250: Invalid argument | |
| Aug 03, 2019 08:10:49.999 [0x7f6b617fa700] Warning — SLOW QUERY: It took 940.000000 ms to retrieve 1 items. | |
| Aug 03, 2019 08:11:47.340 [0x7f6aedffb700] Warning — NetworkServiceBrowser: Error sending out discover packet from 172.17.1.25 to 239.255.255.250: Invalid argument | |
| Aug 03, 2019 08:13:47.372 [0x7f6ab57fa700] Warning — NetworkServiceBrowser: Error sending out discover packet from 172.17.1.25 to 239.255.255.250: Invalid argument | |
| Aug 03, 2019 08:14:17.377 [0x7f6b61ffb700] Warning — NetworkServiceBrowser: Error sending out discover packet from 172.17.1.25 to 239.255.255.250: Invalid argument | |
| Aug 03, 2019 08:14:37.380 [0x7f6aecff9700] Warning — NetworkServiceBrowser: Error sending out discover packet from 172.17.1.25 to 239.255.255.250: Invalid argument | |
| Aug 03, 2019 08:15:07.386 [0x7f6aedffb700] Warning — NetworkServiceBrowser: Error sending out di |
This file has been truncated, but you can view the full file.
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
| -- MySQL dump 10.13 Distrib 5.7.21, for Linux(x86_64) -- -- Host: localhost Database: scotchbox -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.17.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `wp_commentmeta` -- DROP TABLE IF EXISTS `wp_commentmeta`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `wp_commentmeta` ( `meta_i |
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
| #include "include/main.h" | |
| int main(int argc, char ** argv) | |
| { | |
| char *configPath = malloc(sizeof(char) * 180); | |
| char *configFilePath = malloc(sizeof(char) * 180); | |
| getConfigPath(configPath); | |
| getConfigFilePath(configFilePath); | |
| getOptions(argc, argv); | |
| FILE *configurationFile = NULL; | |
| if (initApp(configPath, configFilePath) == 1) return 1; /* could not initialize the app */ |
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
| typedef struct struct_action { | |
| char * name; | |
| char * url; | |
| unsigned int max_depth; | |
| unsigned short versioning; | |
| char ** type; | |
| unsigned int numberOfTypes; | |
| } struct_action; | |
| typedef struct struct_actions { |