This file contains 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
#Create, update and blog post into a Confluence Wiki with Python. You'll have to | |
#provide the server and user credentials | |
import sys | |
from xmlrpclib import Server | |
user = "username" | |
passwd = "passwd" | |
serverurl = "https://server.example.com/rpc/xmlrpc" | |
spacekey = "demospace" |
This file contains 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
#Create a new issue in Jira from the Python XMLRPC interface. You'll have to | |
#provide the server and user credentials and match up your own fields | |
import sys | |
from xmlrpclib import Server | |
user = "username" | |
passwd = "passwd" | |
serverurl = "https://server.example.com/rpc/xmlrpc" | |
projectname = "demoproject" |
This file contains 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 os | |
def main(): | |
for root, dirs, files in os.walk("."): | |
for file in files: | |
full_file = os.path.abspath("{0}\\{1}".format(root, file)) | |
if filter_it(filename=full_file): | |
process_it(filename=full_file) | |
print "Done" |
This file contains 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 | |
r = requests.post("https://pilotweb.nas.faa.gov/PilotWeb/notamRetrievalByICAOAction.do?method=displayByICAOs", params={"formatType":"DOMESTIC", "retrieveLocId":"eos\n3dw\nbbg", "reportType":"REPORT", "openItems":"", "actionType":"notamRetrievalByICAOs" }) | |
print r.content |
This file contains 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
print "Hello World" |
This file contains 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 coveapi | |
import ConfigParser | |
config = ConfigParser.SafeConfigParser(allow_no_value=True) | |
with open('covekeys.cfg') as cfg: | |
config.readfp(cfg) | |
print config.get('API_id') | |
print config.get('Main', 'API_id') | |
cove = coveapi.connect(config.get('Main', 'API_id'), config.get('Main', 'API_secret')) | |
thing = cove.videos.filter(filter_title__contains='Ozarks') | |
print thing |
This file contains 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 coveapi | |
import ConfigParser | |
config = ConfigParser.SafeConfigParser(allow_no_value=True) | |
with open('covekeys.cfg') as cfg: | |
config.readfp(cfg) | |
cove = coveapi.connect(config.get("Main", "API_id'), config.get("Main", "API_secret")) | |
cove = coveapi.connect(config.get("Main", "API_id'), config.get("Main", "API_secret")) | |
cove = coveapi.connect(config.get("Main", "API_id"), config.get("Main", "API_secret")) | |
cove |
This file contains 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
Hello from Vim! |
This file contains 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
Hello from Vim! | |
Thank you @mattn! | |
Gist-vim is awesome! |
This file contains 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 coveapi | |
import ConfigParser | |
config = ConfigParser.SafeConfigParser(allow_no_value=True) | |
with open('covekeys.cfg') as cfg: | |
config.readfp(cfg) | |
cove = coveapi.connect(config.get("Main", "API_id"), config.get("Main", "API_secret")) | |
cove.programs | |
cove.programs.filter(filter_nola_root="KOZK") |
OlderNewer