- macOS High Sierra
- Homebrew (Required by "Homebrew PHP")
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
<?php ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__)); ?> |
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
<?php | |
public function testCharacters() { | |
$this->assertRegExp('/\w/', 'a'); | |
preg_match_all('/[?.!\'\/,\\\;:-]/', '? . ! / , a \ ; : - \'', $matches); | |
$this->assertEqual($matches[0], array('?', '.', '!', '/', ',', '\\', ';', ':', '-', "'")); | |
} | |
?> |
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
{ | |
"name": "hello-world", | |
"description": "hello world test app", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"express": "3.x" | |
} | |
} |
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 express = require('express'); | |
var app = express(); | |
app.get('/', function (req, res) { | |
res.send('Hello World!'); | |
}) | |
var server = app.listen(3000, function () { | |
var host = server.address().address | |
var port = server.address().port |
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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Load tasks | |
grunt.loadTasks('util/grunt'); | |
// Load vendors tasks | |
grunt.loadNpmTasks('grunt-contrib-compass'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); |
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
<?php | |
require_once '../src/Google_Client.php'; | |
function pr($content) { | |
echo '<pre>'; | |
print_r($content); | |
echo '</pre>'; | |
} | |
const CLIENT_ID = 'XXXX'; |
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
<?php | |
require_once "../../google-api-php-client/src/Google_Client.php"; | |
require_once "../../google-api-php-client/src/contrib/Google_DriveService.php"; | |
require_once "../../google-api-php-client/src/contrib/Google_Oauth2Service.php"; | |
require_once "../basics.php"; | |
require_once "../config.php"; | |
function buildClient($scopes, $sub = false) { | |
$key = file_get_contents(SERVICE_ACCOUNT_PKCS12_FILE_PATH); |
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
input:-moz-placeholder, input::-moz-placeholder, input:-ms-input-placeholder, input::-webkit-input-placeholder { | |
color: white; | |
} |
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
object { | |
string apiVersion?; | |
object { | |
string kind?; | |
string lang?; | |
boolean deleted?; | |
string selfLink?; | |
array [ | |
object {}*; | |
] items?; |
OlderNewer