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
| function getWeeksInMonth(year: number, month: number) { | |
| const weeks = [], | |
| firstDate = new Date(year, month, 1), | |
| lastDate = new Date(year, month + 1, 0), | |
| numDays = lastDate.getDate(); | |
| let offset = 0; | |
| if(firstDate.getDay() === 0) offset = 1; | |
| else if(firstDate.getDay() === 6) offset = 2; |
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
| FROM neo4j:4.0.1 | |
| COPY apoc.conf /var/lib/neo4j/conf/ | |
| COPY import/* /var/lib/neo4j/import/ | |
| ENV NEO4JLABS_PLUGINS '["apoc"]' | |
| ENV NEO4J_PASSWD test |
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
| services: | |
| - docker:dind | |
| stages: | |
| - build | |
| - package | |
| - deploy | |
| build: | |
| stage: build |
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 com.fasterxml.jackson.databind.JsonNode; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.fasterxml.jackson.databind.node.ArrayNode; | |
| import com.fasterxml.jackson.databind.node.ObjectNode; | |
| import java.sql.ResultSet; | |
| import java.sql.ResultSetMetaData; | |
| import java.sql.SQLException; | |
| public class ResultsetConverter { |