- GitHub 账号
- git 或兼容客户端
- IDE自带(如适用)
#!/usr/bin/env bash | |
# Terminal shortcut with arguments supported for IntelliJ IDEA on macOS, | |
# put this file into `/usr/bin` or `/usr/local/bin` or anywhere in PATH, | |
# and use `chmod` to make it executable, | |
# then you could use `idea` in terminal to run IDEA. | |
IDEA_APP="IntelliJ IDEA.app" | |
if [ -x "/Applications/$IDEA_APP" ]; then | |
IDEA_PATH="/Applications" |
{ | |
init: (elevators, floors) => { | |
const max = array => Math.max.apply(null, array); | |
const min = array => Math.min.apply(null, array); | |
const asc = (a, b) => a - b; | |
const desc = (a, b) => b - a; | |
const upPressedFloors = []; | |
const downPressedFloors = []; | |
const sortElevatorQueue = elevator => { | |
elevator.destinationQueue.sort(elevator.destinationDirection === 'up' ? asc : desc); |
#!/usr/bin/env bash | |
APP="/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs" | |
if [ -x "$APP" ]; then | |
"$APP" $@ | |
else | |
exit 1 | |
fi |
alert("vulnerable for xss"); |