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
| #! /bin/bash | |
| date=$(date '+%m-%d-%Y-%I:%M:%S%p') | |
| if [ ! -d "/home/maverick/Mavy/wmdc/backups/attendance-${date}/" ]; then | |
| mkdir /home/maverick/Mavy/wmdc/backups/attendance-${date}/ | |
| fi | |
| if [ "$(ls -A /var/lib/tomcat9/webapps/attendance)" ]; then | |
| mv /var/lib/tomcat9/webapps/attendance/* /home/maverick/Mavy/wmdc/backups/attendance-${date}/ | |
| fi |
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
| #! /bin/bash | |
| if [[ ! -d WEB-INF ]] || [[ ! -d WEB-INF/classes ]]; then | |
| mkdir -p WEB-INF/classes | |
| fi | |
| cp -rf src/lib src/attendance.properties src/rewrite.config src/web.xml WEB-INF/ | |
| lib="src/lib/" |
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 { computed } from "vue"; | |
| /** | |
| * Create models from state | |
| * @param {object} vuex state | |
| * @returns {(object | null)} state models | |
| */ | |
| function createModels(state) { | |
| // Check if state is not empty and a valid object | |
| if (state && typeof state === "object" && state.constructor === Object) { |
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 sys | |
| def main(lines): | |
| new_lines = lines[1:] | |
| output_lines = list() | |
| # First line workaround | |
| first_line = lines[0].split() |