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
function $HttpBackendProvider() { | |
this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) { | |
var params = [$browser, XHR, $browser.defer, $window.angular.callbacks, $document[0], $window.location.protocol.replace(':', '')]; /*orig xhr */ | |
var param4ie = params.concat([msie,createHttpBackend.apply(this,params)]); | |
return (angular.ieCreateHttpBackend && angular.ieCreateHttpBackend.apply(this, param4ie)) || | |
createHttpBackend.apply(this, params); | |
}]; | |
} | |
function ieCreateHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, locationProtocol, msie, xhr) { |
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
ieCreateHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, locationProtocol, msie, xhr) { | |
if (!msie || msie > 9) return null; | |
return function (method, url, post, callback, headers, timeout, withCredentials) { | |
window.console.log(callback); | |
$.ajax({ | |
url : url, | |
method : method, | |
success: function (respObj) { | |
completeRequest(callback, 200, respObj.responseText, 'Content-Type: ' + respObj.contentType); |
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
var XHR = window.XMLHttpRequest || function() { | |
try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e1) {} | |
try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e2) {} | |
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e3) {} | |
try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e4) {} | |
throw new Error("This browser does not support XMLHttpRequest."); | |
}, XDR = !window.msPerformance && isIE () != 10 && window.XDomainRequest || null; | |
/** |
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
root@hhvm-ubuntu-12:/data/hhvm# find . -name "config.hdf" | |
./hphp/test/large_memory/config.hdf | |
./hphp/test/zend/config.hdf | |
./hphp/test/config.hdf | |
./hphp/test/quick/debugger/config.hdf | |
./hphp/test/frameworks/config.hdf | |
./hphp/test/slow/debugger/config.hdf | |
./hphp/test/slow/config.hdf | |
./hphp/test/slow/type_profiler/debugger/config.hdf | |
./hphp/test/vm-perf/config.hdf |
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
stdClass Object | |
( | |
[username] => Meeee2 | |
[user_id] => xxxx3109 | |
[access_token] => xxxxxab49d274c6ead22e792 | |
[expires_in] => 2592000 | |
[token_type] => Bearer | |
[state] => | |
[scope] => read,write,email | |
[refresh_token] => xxxxxxxxx429ea4b9fb9071a5f523 |
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
window.location = "https://disqus.com/api/oauth/2.0/authorize/?client_id=0fyob7pEObeLaasAB4iT0QDUUstZYCaj4QrQJyZxyUdQg3itqSQzO4BKh7mj6LC2&scope=read,write,email&response_type=code&redirect_uri=" + window.location.href + "disqus/grant"; |
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
$oauth2token_url = 'https://disqus.com/api/oauth/2.0/access_token/'; | |
$clienttoken_post = array( | |
"grant_type" => 'authorization_code', | |
"client_id" => PVConfiguration::getConfiguration('disqus') -> public_key, | |
"client_secret" => PVConfiguration::getConfiguration('disqus') -> private_key, | |
"redirect_uri" => 'http://'. HOST_DOMAIN .'/disqus/grant', | |
"code" => $_GET['code'] | |
); | |
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
//Write out src to console | |
console.log(src); | |
//The output of console.log(src) | |
src = function () { | |
var what, a = arguments, L = a.length, ax; | |
while (L && this.length) { | |
what = a[--L]; | |
while ((ax = this.indexOf(what)) !== -1) { | |
this.splice(ax, 1); |
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
-- CMAKE_PREFIX_PATH was missing, proceeding anyway | |
CMake Warning at CMake/HPHPSetup.cmake:62 (message): | |
chrpath not found, rpath will not be stripped from installed binaries | |
Call Stack (most recent call first): | |
third-party/CMakeLists.txt:18 (include) | |
-- Boost version: 1.54.0 | |
-- Found the following Boost libraries: | |
-- system |
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
root@cloud-server-05:/data/hhvm# rm -f CMakeCache.txt | |
root@cloud-server-05:/data/hhvm# cmake . | |
-- Performing Test IS_AARCH64 | |
-- Performing Test IS_AARCH64 - Failed | |
-- CMAKE_PREFIX_PATH was missing, proceeding anyway | |
CMake Warning at CMake/HPHPSetup.cmake:62 (message): | |
chrpath not found, rpath will not be stripped from installed binaries | |
Call Stack (most recent call first): |
OlderNewer