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
Stream<Map> queryWikipedia(String term) |
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
inputs. | |
map(queryWikipedia) |
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
inputs. | |
map(queryWikipedia) |
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
class Latest<T> extends StreamEventTransformer<Stream<T>, T> { | |
StreamSubscription latest; | |
void handleData(Stream<T> stream, EventSink<T> sink) { | |
if(latest != null){ | |
latest.cancel(); | |
} | |
latest = stream.listen(sink.add); | |
} | |
} |
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
inputs. | |
map(queryWikipedia). | |
transform(new Latest()) |
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 inputs = | |
query("#query"). | |
onKeyUp. | |
map((event) => event.target.value). | |
where((text) => text.length > 2). | |
transform(new Throttle(500)). | |
distinct(); | |
inputs. | |
map(queryWikipedia). |
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
updateResults(List<String> items){...} |
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
<script type="text/html"> | |
<div>{{mustacheVar}}</div> | |
... | |
</script> |
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
x = "sdfsdf" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="vendor/lodash.js"></script> | |
<script type="text/javascript" src="vendor/angular/angular.js"></script> | |
<script type="text/javascript" src="common/picklist.js"></script> | |
<style> | |
.ng-invalid {background-color: red;} | |
</style> |