ShareShortcuts

Shortcut Challenges

pfg
„Shortcut Challenges“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit pfg die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
71K
Gesichert
1
Aktionen
201
Kategorie
Fun
Version
1.0
Sprache
EN

Vorschau

Shortcut Challenges

Demo:

Challenge Add 1+1 (screenshot) Solution (screenshot)

How It Works

Pick a challenge from the list of challenges. Press View Details to get information about the challenge, then choose Get Initial Code to get a blank shortcut, ready to put actions in.

Code your solution.

Test your solution by running Shortcut Challenges and choosing Run Tests. Failed tests are shown in red, passed tests are shown in green. Once all tests pass, you have beaten the challenge.

Shortcut Golf Rules

Your goal is to beat the challenge in as few actions as possible. There are some limitations on what actions you can use to make sure you actually code a solution.

  • Do not use actions that leave the shortcuts app, get user input, load online resources, or are 3rd party.
  • Your solution should work with any valid input, even if it isn’t a test case. Do not just hardcode input/output pairs.

More Info

View Details: See information about the challenge including the goal of the challenge and how to beat it. Select Get Initial Code to get a blank shortcut ready to start the challenge in, or press cancel to exit. View Tests: View a specific test case. Run Tests: Run your shortcut against the test case to see if it passes. Failures will be shown in a dialog with more information. Successes are shown in a notification with more information if you tap them. Back To Menu Go back to the challenge list.

Custom Challenges

Custom challenges are not yet supported.

Submit challenges here to add them to the main list: https://github.com/pfgithub/shortcut-challenges or send them to me on routinehub/reddit/discord.

This shortcut supports Check For Updates

link.

Run Check For Updates at any time to check for updates to this and other shortcuts.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 21. Feb 2019

First release

Was er macht

201 Aktionen
  1. Comment
    Created by @pfg#4856 https://routinehub.co/user/pfg /u/pfg___
  2. Set Variable
    Input
  3. Dictionary
  4. Get File
  5. Set Dictionary Value
  6. Save File
  7. Text
  8. Set Variable
    \n
  9. Get Variable
  10. If
  11. Get IP Address
  12. If
  13. Text
  14. If
  15. Text
  16. If
  17. Show Notification
    There is no internet, the challenge list will not be downloaded.
  18. Get File
  19. If
  20. Show Notification
    Downloading Challenge List
  21. URL
    raw.githubusercontent.com/pfgithub/shortcut-challenges/master/challenges.json
  22. Get Contents of URL
  23. Show Notification
    Done
  24. Get Dictionary from Input
  25. Save File
  26. Get Variable
  27. Stop This Shortcut
  28. If
  29. Create Folder
  30. Create Folder
  31. Get File
  32. Get Dictionary from Input
  33. Set Variable
    Challenges
  34. Text
  35. Set Variable
    This Shortcut
  36. Get File
  37. Text
  38. Count
  39. If
  40. Get Variable
  41. Get Dictionary Value
  42. Get Dictionary from Input
  43. Set Variable
    Current Challenge
  44. If
  45. Get Variable
  46. If
  47. List
  48. Choose from List
  49. If
  50. Text
  51. Make Rich Text from Markdown
  52. Make HTML from Rich Text
  53. Text
  54. Make Rich Text from HTML
  55. Show Web Page
  56. List
  57. Choose from List
  58. If
  59. Get Variable
  60. If
  61. Base64 Encode
  62. Set Name
  63. Save File
  64. Open File
  65. Stop This Shortcut
  66. If
  67. Choose from Menu
    This shortcut has no example code
  68. Choose from Menu
    Copy shortcut name
  69. Text
  70. Copy to Clipboard
  71. Show Result
  72. Stop This Shortcut
  73. Choose from Menu
    Don't
  74. Nothing
  75. If
  76. Nothing
  77. If
  78. If
  79. Text
  80. Save File
  81. Nothing
  82. If
  83. If
  84. Get Variable
  85. Repeat with Each
  86. Get Variable
  87. Choose from List
  88. Get Variable
  89. Get Item from List
  90. Get Dictionary from Input
  91. Quick Look
  92. Nothing
  93. If
  94. If
  95. Text
  96. Set Variable
    Challenge Name
  97. Get My Shortcuts
  98. If
  99. Get Variable
  100. Repeat with Each
  101. Get Variable
  102. Get Text from Input
  103. Combine Text
  104. Set Variable
    Expected Output
  105. Get Variable
  106. Run Shortcut
  107. Get Text from Input
  108. Combine Text
  109. Set Variable
    Actual Output
  110. Text
  111. Set Variable
    Test Result Description
  112. Text
  113. Set Variable
    Success
  114. Get Variable
  115. If
  116. Text
  117. Set Variable
    Success
  118. Text
  119. If
  120. Text
  121. Text
  122. Make Rich Text from Markdown
  123. Make HTML from Rich Text
  124. Text
  125. Set Variable
    temp
  126. Combine Text
  127. Text
  128. Make Rich Text from HTML
  129. Show Web Page
  130. If
  131. Show Result
  132. Nothing
  133. If
  134. Nothing
  135. Run Shortcut
  136. Stop This Shortcut
  137. If
  138. Get File
  139. Get Dictionary from Input
  140. Set Variable
    Challenges
  141. Get File
  142. If
  143. Get Dictionary from Input
  144. Set Variable
    Challenges
  145. Text
  146. Run Shortcut
  147. If
  148. Text
  149. Run Shortcut
  150. If
  151. Show Alert
  152. Stop This Shortcut
  153. If
  154. Get File
  155. Set Variable
    Challenges
  156. Text
  157. Set Name
  158. Set Variable
    temp2
  159. Get Variable
  160. Set Variable
    temp
  161. Get My Shortcuts
  162. Filter Files
  163. Set Variable
    My Shortcuts
  164. Get Variable
  165. Repeat with Each
  166. Get Variable
  167. Get Dictionary Value
  168. Get Dictionary from Input
  169. Set Variable
    Current Challenge
  170. Get Variable
  171. If
  172. Filter Files
  173. If
  174. Text
  175. Set Name
  176. Set Variable
    temp2
  177. Get Variable
  178. Add to Variable
  179. Get Variable
  180. Choose from List
  181. Get Name
  182. If
  183. Text
  184. Set Variable
    Archive Name
  185. Choose from Menu
    Create backup in /Shortcuts/Challenges/….zip ?
  186. Choose from Menu
    Create Backup
  187. Get My Shortcuts
  188. Filter Files
  189. Make Archive
  190. Set Name
  191. Save File
  192. Show Alert
  193. Nothing
  194. Run Shortcut
  195. Stop This Shortcut
  196. If
  197. Replace Text
  198. Save File
  199. Nothing
  200. Run Shortcut

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von pfg

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung