Skip to content

Instantly share code, notes, and snippets.

View omarmilhouse's full-sized avatar

omarmilhouse omarmilhouse

View GitHub Profile
@omarmilhouse
omarmilhouse / fix_nghttp2_make.sh
Created May 2, 2019 10:01
Fix brew install nghttp2 with macOS 10.11 while installing php
# Error installing nghttp2 during make:
# Last 15 lines from /Users/omarmilini/Library/Logs/Homebrew/nghttp2/02.make:
# _LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
brew install gcc
brew install --cc=gcc-8 nghttp2
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>YouTube API</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="auth.js" type="text/javascript"></script>
<script type="text/javascript">
function handleAPILoaded() {
// The client id is obtained from the Google APIs Console at https://code.google.com/apis/console
// If you run access this code from a server other than http://localhost, you need to register
// your own client id.
var OAUTH2_CLIENT_ID = 'OauthClientId';
var OAUTH2_SCOPES = [
'https://www.googleapis.com/auth/youtube'
];
// This callback is invoked by the Google APIs JS client automatically when it is loaded.
googleApiClientReady = function() {