$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
const groupCourtsByState = (): {} => { | |
return data.reduce((r, a) => { | |
r[a.state] = [...(r[a.state] || []), a]; | |
return r; | |
}, {}); | |
}; |
System.out.println("\033[0m BLACK"); | |
System.out.println("\033[31m RED"); | |
System.out.println("\033[32m GREEN"); | |
System.out.println("\033[33m YELLOW"); | |
System.out.println("\033[34m BLUE"); | |
System.out.println("\033[35m MAGENTA"); | |
System.out.println("\033[36m CYAN"); | |
System.out.println("\033[37m WHITE"); |
// Document-level function | |
function nextTab(fieldName) | |
{ | |
if (event.willCommit || event.fieldFull) this.getField(fieldName).setFocus(); | |
} | |
//Keystroke script of a text field: | |
// Autotab to the "text2" field | |
nextTab("text2"); |
tell application "Finder" | |
set sourceFile to choose file with prompt "Please select directory." | |
display dialog "Input times" default answer "" buttons {"OK"} default button 1 | |
set theAnswer to (text returned of result) | |
repeat with i from 1 to theAnswer | |
duplicate file sourceFile | |
end repeat | |
end tell |
set MyShare to "MyShare" | |
set OpenShare to "OpenShare" | |
tell application "System Events" to set diskNames to name of every disk | |
set myDisks to {MyShare, OpenShare} | |
repeat with myVolume in myDisks | |
try | |
if myVolume is in diskNames then |
set clipdata to get the clipboard as text | |
set the clipboard to my change_case(the clipdata, "upper") | |
on change_case(this_text, this_case) | |
if this_case is "lower" then | |
set the new_text to do shell script "echo " & quoted form of (this_text) & " | tr A-Z a-z" | |
else | |
set the new_text to do shell script "echo " & quoted form of (this_text) & " | tr a-z A-Z" | |
end if |