##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
# With a little help from http://www.raspberrypi.org/forums/viewtopic.php?f=78&t=85041 | |
sudo raspi-config | |
# Expand Filesystem | |
# Advanced Options -> Audio -> Change to 3.5 Headphone | |
# Internationalisation Options | |
sudo reboot | |
# if locale errors show up, | |
sudo dpkg-reconfigure locales | |
# Uncheck en_UK.UT8 | |
# Check en_US.UTF8 |
Invoke-RestMethod -Uri ("https://outlook.office365.com/api/v1.0/users/sharedmailbox@domain.com/calendarview?startDateTime=" + (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddThh:mm:ssZ") + "&endDateTime=" + (Get-Date).ToUniversalTime().AddDays(7).ToString("yyyy-MM-ddThh:mm:ssZ")) -Credential (Get-Credential) | foreach-object{$_.Value} |
var resourceUrl = 'https://outlook.office365.com'; | |
var officeEndpointUrl = 'https://outlook.office365.com/ews/odata'; | |
var TENANT_NAME = '17bf7168-5251-44ed-a3cf-37a5997cc451'; | |
var appId = '3cfa20df-bca4-4131-ab92-626fb800ebb5'; | |
var redirectUrl = "http://test.com"; | |
var authUrl = 'https://login.windows.net/' + TENANT_NAME + '/'; | |
var TEST_USER_ID = ''; |
<?php | |
/** | |
* Sales force integration | |
*/ | |
add_action( 'wpcf7_before_send_mail', 'my_conversion' ); | |
function my_conversion( $cf7 ){ | |
ob_start(); // start buffer capture |
/** @jsx React.DOM */ | |
var EventPlayer = React.createClass({ | |
componentDidUpdate: function() { this.update_player(); }, | |
componentDidMount: function() { | |
var self = this; | |
self.update_player(); | |
$(window).on('resize', function(){ | |
self.resize_player(); | |
}); |
RegExp.prototype.findAll = function(str) { | |
var match = null, results = []; | |
while ((match = this.exec(str)) !== null) { | |
switch (match.length) { | |
case 1: | |
results[results.length] = match[0]; | |
break; | |
case 2: | |
results[results.length] = match[1]; | |
break; |
// IndexedDB properties | |
var idbDatabase; | |
const IDB_VERSION = 1, | |
STOP_RETRYING_AFTER = (1000 * 60 * 60 * 24), // One day, in milliseconds. | |
STORE_NAME = 'urls', | |
IDB_NAME = 'offline-analytics'; | |
// These URLs should always be fetched from the server, or page views don't count! | |
const analyticsDomains = [ | |
{ host: 'omniture.adobe.com', pathStart: '/b/ss'}, // Omniture |
##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
// Pretend that cookies work | |
(function (document) { | |
var cookies = {}; | |
document.__defineGetter__('cookie', function () { | |
var output = []; | |
for (var cookieName in cookies) { | |
output.push(cookieName + "=" + cookies[cookieName]); | |
} | |
return output.join(";"); | |
}); |
import React, {Component} from "react"; | |
import cx from 'classnames'; | |
import vjs from 'video.js'; | |
import _ from 'lodash'; | |
import ReactDOM from 'react-dom'; | |
const DEFAULT_HEIGHT = "100%"; | |
const DEFAULT_WIDTH = "100%"; | |
const DEFAULT_ASPECT_RATIO = (9 / 16); | |
const DEFAULT_ADJUSTED_SIZE = 0; |