Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2015
Jun. 30, 2014
Operating activities    
Net loss $ (29,006) $ (10,203)
Adjustments to reconcile net loss to net cash provided by operating activities    
Depreciation and amortization expense 10,146 5,542
Stock-based compensation expense 50,704 19,011
Excess tax benefit from stock-based compensation (633) (3,146)
Deferred income taxes (2,884) 3,176
Changes in operating assets and liabilities    
Accounts receivable, net 605 4,704
Prepaid expenses, deposits and other assets (7,173) (455)
Income taxes receivable 77 (36)
Deferred revenue 22,783 14,036
Accounts payable and accrued liabilities 10,383 (212)
Income taxes payable 49 53
Net cash provided by operating activities 55,051 32,470
Investing activities    
Purchase of property and equipment (19,117) (14,478)
Net cash used in investing activities (19,117) (14,478)
Financing activities    
Proceeds from public offering, net of underwriters' discount and offering costs 0 344,097
Proceeds from exercise of stock options 12,900 9,388
Excess tax benefit from stock-based compensation 633 3,146
Net cash provided by financing activities 13,533 356,631
Effect of exchange rate changes on cash and cash equivalents (574) 17
Net increase in cash and cash equivalents 48,893 374,640
Cash and cash equivalents    
Beginning of period 680,613 252,674
End of period 729,506 627,314
Non-cash activities    
Accrued purchases of property and equipment 6,002 3,649
Asset retirement obligations recognized 304 0
Property and equipment acquired under build-to-suit lease $ 0 $ 11,600