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
| #!/usr/bin/env bash | |
| # [note] | |
| # error message 'xargs: unterminated quote' is ignorable. | |
| # [workflow] | |
| # 1. daily execute the command | |
| # 2. if something shows up, apply via web browser | |
| # [RCEPT_SE] |
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 | |
| echo '' > problemToLevel.csv | |
| result=$(seq 1 35000 | paste -sd "," - | sed 's/\([^,]*,\)\{100\}/&\n/g') | |
| IFS=$'\n' read -rd '' -a number_array <<< "$result" | |
| for i in "${!number_array[@]}"; do | |
| number_array[$i]=${number_array[$i]%?} # remove last comma |
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
| { | |
| state: { | |
| waiting: { | |
| "up" : {}, | |
| "down": {}, | |
| }, | |
| highestFloor: 0, | |
| totalWaitingUp: function() { | |
| return Object.values(this.state.waiting["up"]).reduce((a,b) => a+b, 0) | |
| }, |
OlderNewer