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
| /* BEGIN: fix deployment into heroku*/ | |
| const PORT = process.env.PORT || 3000; | |
| const INDEX = '/docs/index.html'; | |
| let express = require('express'); | |
| //res.sendFile(INDEX, { root: __dirname }) | |
| const server = express() | |
| .use((req, res) => res.sendFile(INDEX, { root: __dirname })) | |
| .listen(PORT, () => logger.info(`Listening on ${PORT}`)); | |
| /* END: fix deployment into heroku*/ |
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
| const permisos = [ | |
| 'ADD_REACTIONS', | |
| 'ADMINISTRATOR', | |
| 'ATTACH_FILES', | |
| 'BAN_MEMBERS', | |
| 'CHANGE_NICKNAME', | |
| 'CONNECT', | |
| 'CREATE_INSTANT_INVITE', | |
| 'DEAFEN_MEMBERS', | |
| 'EMBED_LINKS', |
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 java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| import java.util.Locale; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.apache.log4j.Logger; |
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
| compileJava{ | |
| doFirst { | |
| def propertyFile = file "/version.properties" | |
| def props = new Properties() | |
| propertyFile.withReader { props.load(it) } | |
| print "Actual Version: " | |
| version = props.getProperty('MajorVersion') + '.' + props.getProperty('MinorVersion') + '.' + props.getProperty('PatchVersion') + '-' + props.getProperty('LabelVersion') + '(' + props.getProperty('BuildVersion') + props.getProperty('MajorVersion') + props.getProperty('MinorVersion') + props.getProperty('PatchVersion') + ")" | |
| println("version = ${version}") | |
| } | |
| doLast { |
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
| /* | |
| * | |
| */ | |
| /** | |
| * The Enum Color. | |
| */ | |
| public enum ColorNameEnum { |