This file contains hidden or 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": "play-1463077577", | |
| "main": "index.js", | |
| "version": "0.0.0", | |
| "authors": [ | |
| "Stephen Sawchuk <sawchuk@gmail.com>" | |
| ], | |
| "description": "", | |
| "moduleType": [], | |
| "license": "MIT", |
This file contains hidden or 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
| 'use strict' | |
| var async = require('async') | |
| var gcloud = require('gcloud') | |
| var datastore = gcloud.datastore({ projectId: 'nth-circlet-705' }) | |
| var key = datastore.key(['ContactsParent', 'my_username', 'Contacts', 'my_contact']) | |
| var data = { | |
| status: 'some status' | |
| } |
This file contains hidden or 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 __DIR__ . '/vendor/autoload.php'; | |
| $gcloud = new Google\Cloud\ServiceBuilder([ | |
| 'projectId' => 'nth-circlet-705' | |
| ]); | |
| $storage = $gcloud->storage(); |
This file contains hidden or 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
| 'use strict' | |
| var PROJECT_ID = process.env.GCLOUD_PROJECT_ID | |
| var BUCKET_NAME = process.env.GCLOUD_BUCKET | |
| var fs = require('fs') | |
| var gcloud = require('gcloud')({ projectId: PROJECT_ID }) | |
| var gcs = gcloud.storage() | |
| var bucket = gcs.bucket(BUCKET_NAME) |
This file contains hidden or 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
| 'use strict'; | |
| var fs = require('fs'); | |
| var gcloud = require('gcloud'); | |
| var gcs = gcloud.storage({ | |
| projectId: 'nth-circlet-705', | |
| keyFilename: '/Users/stephen/dev/keyfile.json' | |
| }); |
This file contains hidden or 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
| #!/usr/bin/env node | |
| 'use strict'; | |
| var fs = require('fs'); | |
| var pbjs = require('protobufjs'); | |
| var commonJsExporter = require('protobufjs/cli/pbjs/targets/commonjs'); | |
| function build(protoFilePath, destinationJsFile) { | |
| var fileContents = fs.readFileSync(datastoreProtoFile, 'utf-8'); |
This file contains hidden or 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
| { | |
| // PRIVATE DASHBOARDS: | |
| "${projectId}:${userId}": { | |
| "${dashboardId}": { | |
| "modified": new Date(), | |
| "plugins": [ | |
| { | |
| "title": "Storage Browser", | |
| "state": "storage-browser", |
This file contains hidden or 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
| 'use strict'; | |
| var Q = require('q'); | |
| var packageJson = require('package-json'); | |
| var log = process.env.LOGGER || console; | |
| module.exports = function (list) { | |
| log.info('Fetching package info for %s packages', list.length); |
This file contains hidden or 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
| 'use strict'; | |
| var topicName = 'book-process-queue'; | |
| var subscriptionName = 'shared-worker-subscription'; | |
| var creatingSubscription = false; | |
| var subscription; | |
| var onMessageHandlers = []; | |
| module.exports = function() { |