I hereby claim:
- I am olslash on github.
- I am olslash (https://keybase.io/olslash) on keybase.
- I have a public key whose fingerprint is 88CA 494E 18E4 88BF E1FD EC81 6E73 C114 5978 E765
To claim this, I am signing this object:
| Trie.prototype.getSuggestions = function(keyString, suggestionDepth) { | |
| // Traverse the tree based on the key digits in keyString, to find the | |
| // node where relevant words are stored. | |
| var result = []; | |
| var node = this; | |
| for(var i = 0; i < keyString.length; i++) { | |
| var thisKey = keyString[i]; | |
| if(!node.children.hasOwnProperty(thisKey)) { break; } | |
| node = node.children[thisKey]; |
| function getDeeperSuggestions(root, maxDepth) { | |
| // We traverse down every possible branch from the result node (the node | |
| // corresponding to the keypad entry), saving words we see as we go and | |
| // stopping when we reach the specified depth.sug | |
| // deepSuggestions is an array with (maxDepth) subarrays. | |
| // Each of the subarrays will be one depth level's suggestions. | |
| var deepSuggestions = []; | |
| while(deepSuggestions.length < maxDepth) { | |
| deepSuggestions.push([]); |
I hereby claim:
To claim this, I am signing this object:
| import React from 'react'; | |
| // import { } from 'lodash'; | |
| // import { PropTypes } from 'helpers/react'; | |
| // const { } = PropTypes; | |
| const $NAME$ = ({ | |
| fields | |
| } = {}) => (WrappedComponent) => { | |
| class Wrapped$NAME$ extends React.Component { |
| import { createReducer } from 'helpers/redux'; | |
| // import { } from 'lodash'; | |
| export const namespace = '$NS$'; | |
| const ACTION = 'nc/$NS$/ACTION'; | |
| const defaultState = { | |
| }; |
| import React from 'react'; | |
| // import {} from 'lodash'; | |
| // import { PropTypes } from 'helpers/react'; | |
| // const {} = PropTypes; | |
| export default class $NAME$ extends React.Component { | |
| static propTypes = {}; | |
| static defaultProps = {}; |