I hereby claim:
- I am woogenius on github.
- I am woogenius (https://keybase.io/woogenius) on keybase.
- I have a public key ASAQKs9GBs5Y1oAcT9qteVLchAYGTdgK6p4QIewDbA5OVgo
To claim this, I am signing this object:
| regExp = buildRegExp(searchText) | |
| selector = $or: [{name: regExp}, {symbol: regExp}] | |
| AutocompleteSecurities.aggregate([ | |
| {$match: selector} | |
| {$project: {asset_class: 1, symbol: 1, name: 1, size: 1, prefixPriority: | |
| {$cond: [ | |
| {$eq:[ | |
| {$substr: [{$toLower: "$name"}, 0, searchText.length]}, | |
| {$toLower: searchText} | |
| ]}, 1, 2 |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: