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
# Ruby style | |
books.values.each { |rate| ratings[rate] += 1 } | |
# Java style | |
for (Object rate : books.getValues()) { | |
Integer count = ratings.get (rate); | |
if (count != null) ratings.put (rate, new Integer(count.intValue() + 1)) | |
else ratings.put (rate, new Integer(1)); | |
} |
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
drafts://x-callback-url/import_action?type=URL&name=Create%20URL%20Action&url=drafts%3A%2F%2Fx-callback-url%2Fimport_action%3Ftype%3DURL%26name%3D%5B%5Btitle%5D%5D%26url%3D%5B%5Bbody%5D%5D |
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
javascript:window.location= | |
'byword%3A%2F%2Fx-callback-url%2Fappend%3Flocation%3Dicloud%26name%3DUntitled.txt%26text%3D'+ | |
encodeURIComponent("\n["+window.getSelection()+"]")+ | |
encodeURIComponent("("+location.href+")\n")+ | |
'%26x-success%3D'+encodeURIComponent(location.href) |
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
silo://x-callback-url/list_entity/add? | |
title=[[title]]& | |
notes={{<<ttravel>>}}[[body]]& | |
x-success={{drafts://}} |
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
clearapp://list/create? | |
listName=[[title]]& | |
tasks={{<<ttravel>>}}%20[[body]] |
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
drafts://x-callback-url/create? | |
text=Expenses%0A[[date|%-m/%-d/%y]]%7C%7C%7C[[date|%-I:%M:%S %p]]%7C%7C%7C[[line|1]]%7C%7C%7C[[line|2]]%7C%7C%7C[[line|3]]& | |
action=Reminder& | |
afterSuccess=Delete |
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
drafts://x-callback-url/create? | |
text=Gas%20Fill%20Up%0A[[date|%-m/%-d/%y]]%7C%7C%7C[[date|%-I:%M:%S %p]]%7C%7C%7C[[line|1]]%7C%7C%7C[[line|2]]%7C%7C%7C[[line|3]]%7C%7C%7C[[line|4]]& | |
action=Reminder& | |
afterSuccess=Delete |
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
due://x-callback-url/add? | |
title=Mail%20about%20[[line|2]]%20at%20[[line|3]]%0A | |
{{launchpro-email://x-callback-url/? | |
to=[[line|1]]& | |
subject=[[line|2]]& | |
body=[[line|4..]]& | |
x-success=due%3A%2F%2F}}& | |
x-source=Drafts& | |
x-success={{drafts://}} |
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
javascript:window.location='drafts://x-callback-url/create?text='+ | |
encodeURIComponent(document.title+'%5Cn')+ | |
encodeURIComponent(location.href)+ | |
'&action=Append%20with%20Clipboard&afterSuccess=Delete' |
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
due://x-callback-url/add? | |
title=Search%20for%20[[line|1]]%20at%20[[line|2]]%0A | |
{{http://phobos.apple.com/WebObjects/MZSearch.woa/wa/search? | |
media=software& | |
term=[[line|1]]}}& | |
x-source=Tweetbot& | |
x-success= | |
{{tweetbot://epramono/post? | |
text=[[line|3]]%20[[line|1]]%20is%20free%20today.%0A%0A | |
http%3A%2F%2Fphobos.apple.com%2FWebObjects%2FMZSearch.woa%2Fwa%2Fsearch%3Fmedia%3Dsoftware%26term%3D[[line|1]]& |
OlderNewer