def foo():
"""A multi-line
docstring.
"""
pass # A single-line comment.
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
property AIRDROP_FOLDER : "Path:to:AirDrop:Folder:in:Alias:format" | |
property QUARANTINE_KEY : "59" | |
property GET_QUARANTINE_COMMAND_START : "ls -l -@ '" | |
property GET_QUARANTINE_COMMAND_END : "' | tr '\\n' ' ' | sed 's/.*com\\.apple\\.quarantine\\s*\\(\\d*\\)/ \\1/' | awk '{$1=$1};1'" | |
on adding folder items to this_folder after receiving added_items | |
repeat with i from 1 to length of added_items | |
set current_item to item i of added_items | |
set quarantine_type to getQuarantineType(POSIX path of current_item) |
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
// Candidates | |
const reduceSpread = (users) => { | |
return users.reduce((acc, user) => { | |
if (!user.active) { | |
return { ...acc, [user.id]: user.name } | |
} | |
return acc | |
}, {}) | |
} |
I hereby claim:
- I am martinrosenberg on github.
- I am martinrosenberg (https://keybase.io/martinrosenberg) on keybase.
- I have a public key ASDCX9VYGbanJp1nyyO737bC78jkgT9s5Ry_p0042dhi6go
To claim this, I am signing this object:
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
int random; | |
do | |
{ | |
random=rand(); | |
} while(random < 1 || random > 100); |