Each commit message consists of a header, a body and a footer. The header is mandatory The header has a special format that includes a type, a scope and a subject:
<type>[optional scope]: <subject>
<BLANK LINE>
[optional body]
| import javafx.application.Application; | |
| import javafx.fxml.FXMLLoader; | |
| import javafx.scene.Scene; | |
| import javafx.scene.layout.Pane; | |
| import javafx.stage.Stage; | |
| import java.io.IOException; | |
| /** | |
| * Main application class. |
| # create new branch and switch to it | |
| git checkout -b <branch_name> | |
| # push the branch to the remote repository origin and tracks it | |
| git push -u origin HEAD |
| const express = require('express'); | |
| const mongoose = require('mongoose'); | |
| const app = express(); | |
| app.use(express.urlencoded({extended: true})); | |
| app.use(express.json()); | |
| mongoose.connect('mongodb://localhost/test', (err) => { | |
| if (err) throw err; | |
| console.log('Mongoose connected!'); |
| 0 2 * * * /home/scripts/mirror_photos.sh |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>PHP - Hello, World!</title> | |
| </head> | |
| <body> | |
| <?php | |
| $hitPlace = [ |
| // ------------------------- DEFINITIONS | |
| var db = { | |
| defaultValues: { A: 0.25, B: 0.6, C: 0.9 }, | |
| minimalValues: { A: 0.05, B: 0.1, C: 0.3 }, | |
| maximalValues: { A: 0.7, B: 0.95, C: 0.99 }, | |
| bonuses: [ | |
| { | |
| key: "default", | |
| name: "Bez bonusu", | |
| attack: { levelA: 0, levelB: 0, levelC: 0 }, |
| <?php | |
| /** | |
| * Parses string definition of diceroll to random dice rolls | |
| * @param String $diceRoll The string representation of requested roll, e.g. "@ROLL-3d6@" | |
| */ | |
| function generateDiceRoll($diceRoll) { | |
| $designationChar = '@'; | |
| $command = "ROLL-"; | |
| $cleanedRoll = ltrim(trim($diceRoll, $designationChar),$command); |