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 microsoft.exchange.webservices.data.*; | |
import java.net.URI; | |
public class Main { | |
public static void main(String [] args) throws Exception { | |
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); | |
ExchangeCredentials credentials = new WebCredentials("[email protected]","PASSWORD"); | |
service.setCredentials(credentials); | |
service.setUrl(new URI("https://EXCHANGE_SERVER_API_DOMAIN/ews/exchange.asmx")); |
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 random | |
import names | |
streets = "Vine,Race,Cherry,Arch,John F Kennedy Boulevard,Market,Chestnut,Sansom,Walnut,Locust,Spruce,Pine,Lombard,South".split(',') | |
second = "suite,apartment,unit".split(',') | |
def gen2(): | |
if random.randrange(100) <= 30: | |
return "%s #%s" % (random.choice(second), random.randrange(20)) | |
else: |
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
/* | |
This allows a javascript app to hit a relative url such as | |
/Proxy/myapp.com/api/rest/2/issues | |
and then have the server make a call to | |
http://myapp.com/api/rest/2/issues |
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
require 'pp' | |
require 'rubygems' | |
require 'open-uri' | |
require "uri" | |
require "net/http" | |
require 'openssl' | |
require 'json' | |
require 'digest/sha1' |
NewerOlder