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' |
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
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
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
package com.aaronheld; | |
import org.apache.pdfbox.cos.COSDocument; | |
import org.apache.pdfbox.pdfparser.PDFParser; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.util.PDFTextStripper; | |
import java.io.File; | |
import java.io.FileInputStream; |
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
def bray(n): | |
if n < 1: return 0 | |
if n == 1: return 1 | |
accumulator = 1 + (2 * n-2) # this is the same as 1 + 2 + 2 +2 .... | |
return accumulator + bray(n-1) | |
for n in range(10): | |
bray(n) | |
print("n=%3d: bray(n) = %s\t square(n): %5d" % (n,bray(n),n*n) ) |
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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
"Amateurs talk about tactics, but professionals study logistics." | |
- Gen. Robert H. Barrow, USMC | |
% | |
If you don't have time to do it right, when will you have time to do it over? | |
John Wooden | |
% | |
When you can measure what you are speaking about, and express it in numbers, you know something about it; but when you cannot measure it, when you cannot express it in numbers, your knowledge is of a meagre and unsatisfactory kind | |
-Lord Kelvin 1883 | |
% | |
"Beautiful as that wonderful work of nature [Niagara] is, it would be more beautiful still if those waters fell upon turbine wheels every one of which was turning the wheels of industry." |
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
from pprint import pprint | |
from itertools import chain, islice | |
from time import sleep | |
from random import random | |
def make_req(x): | |
return {'id': x} | |
OlderNewer