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
#!/bin/sh | |
# add this to your bitbar directory | |
# don't forget to chmod +x | |
# Enter your age here for life percentage | |
dob="0" | |
# width and characters for the progress bars | |
# feel free to configure these | |
width=30 |
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
import requests | |
url = 'http://ES_search_demo.com/document/record/_search?pretty=true' | |
data = '{"query":{"bool":{"must":[{"text":{"record.document":"SOME_JOURNAL"}},{"text":{"record.articleTitle":"farmers"}}],"must_not":[],"should":[]}},"from":0,"size":50,"sort":[],"facets":{}}' | |
response = requests.get(url, data=data) | |
response = request.post(url , data) |
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
def slackpush(data): | |
# print data | |
global bufferflush | |
global datalist | |
global eof | |
if eof == '': | |
pass | |
else: | |
data = data.partition(eof)[2] | |
print data |