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
| /help | |
| --programA/ | |
| ----docs/ | |
| ------docmarkup.doc | |
| ------docchoices.choice | |
| -------/choiceA | |
| -------/choiceB | |
| where docmarkup is the text for this step | |
| .choice is just a line delimited list of the following: |
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
| goApp :: App n -> IO n | |
| goApp init = evalStateT (runApp init) initAppState | |
| scheduleGTKStuff :: IO () -> IO () | |
| scheduleGTKStuff action = do | |
| void $ Gdk.threadsAddIdle GLib.PRIORITY_DEFAULT $ do | |
| action | |
| return False |
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
| var Application = Packages.com.parasoft.api.Application; | |
| var WebBrowserUtil = Packages.webking.api.browser2.WebBrowserUtil; | |
| //set Target Frame | |
| var frameName = 'popupFrame'; | |
| //set type of target Element | |
| var targetElementType = 'button'; | |
| function getFrameDocument(input, context) { | |
| //This function lets us get a fake document object to work with. | |
| var document = input.getDocument('',frameName); |
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
| "use strict"; | |
| function ReactFunctor(tag,attr,props,children){ | |
| let classArgs = { | |
| render : function render() { | |
| return React.createElement(tag,this.props,this.props.children); | |
| } | |
| }; | |
| if (props !== null) Object.assign(classArgs,props); | |
| return React.createElement(React.createClass(classArgs),attr,children); |
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
| "use strict"; | |
| const _L = require('lodash'); | |
| function combinationOfSetsWithLeastWaste(targetSet,candidateGroup){ | |
| /* | |
| Finds the group of sets whose intersection equals the target set, while | |
| containing the least waste through extraneous or overlapping items. | |
| where candidateGroup is a collection of objects as: |
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
| "use strict"; | |
| const AND = 'AND', | |
| OR = 'OR'; | |
| function parsePoleBools(arr){ | |
| /* | |
| takes: | |
| an array of: | |
| bools and/or functions that evaluate to bools | |
| tokens representing boolean comparison | |
| (all in reverse polish notation order) |
NewerOlder