Uses 911K of libraries. Click here for Pure Java version (11219L/64K).
!7 svoid _onLoad { onTranspilerDirty(r dm_refreshTranspiler); } cmodule NewSnippetAsSF > DynPrintLogAndEnabled { start { dm_onSnippetCreated(voidfunc(S snippetID) { print("New snippet! " + snippetID); if (getSnippetType(snippetID) == snippetType_JavaXInclude()) { S text = loadSnippet(snippetID); S sfName = first(findFunctionDefinitions(text)); if (sfName != null) showPackedFrameInBottomRightCorner( centerAndSouthWithMargins(jlabel("Add standard function: " + sfName + "?"), hgridWithSpacing( jThreadedButton("OK", r { disposeWindow(heldInstance(JButton)); addStandardFunctionWithAnimation(snippetID); }), jCancelButton("No") ) )); } }); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022584 |
Snippet name: | Stefan's Assistant: Offer to add new snippet as standard function [old, now integrated in assistant] |
Eternal ID of this version: | #1022584/6 |
Text MD5: | afd6ed56f4731f3165f3e879ae6a9663 |
Transpilation MD5: | c973b5595b6fdcca5f0f5149aa34244d |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-16 16:57:10 |
Source code size: | 888 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 284 / 1457 |
Version history: | 5 change(s) |
Referenced in: | #1022902 - Clipboard -> AI Album |