This file contains 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 | |
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
networksetup -setairportpower en0 off |
This file contains 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
tell application "Mail" to activate | |
tell application "System Events" | |
tell process "Mail" | |
keystroke "r" using {command down, shift down} | |
delay 1 | |
keystroke tab using shift down | |
keystroke tab using shift down | |
keystroke "a" using command down | |
keystroke "x" using command down | |
keystroke tab using shift down |
This file contains 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
//map function | |
function map(value, start1, stop1, start2, stop2) { | |
var mappedValue = ((value-start1)/(stop1 - start1))*(stop2-start2)+start2; | |
return mappedValue; | |
} |