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
MODEL_NAME=census | |
MODEL_VERSION=v1 |
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
/** | |
* Copyright 2017, Google, Inc. | |
* Licensed under the Apache License, Version 2.0 (the "License") | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
Hello World! |
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
/** | |
* Copyright 2017, Google, Inc. | |
* Licensed under the Apache License, Version 2.0 (the "License") | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
const rp = require('request-promise'); | |
exports.generateJwt = (req, res) => { | |
let serviceNamePromise = getServiceAccountName(); | |
let serviceTokenPromise = getServiceAccountToken(); | |
Promise.all([ | |
serviceNamePromise, | |
serviceTokenPromise]).then((values) => { |
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
const rp = require('request-promise'); | |
exports.blobSigner = (req, res) => { | |
let serviceNamePromise = getServiceAccountName(); | |
let serviceTokenPromise = getServiceAccountToken(); | |
Promise.all([ | |
serviceNamePromise, | |
serviceTokenPromise]).then((values)=>{ |
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
try { | |
var process = new ffmpeg(pathToVideo); | |
process.then(function (video) { | |
// Video metadata | |
console.log(video.metadata); | |
// FFmpeg configuration | |
console.log(video.info_configuration); | |
callback(null, video.metadata); |
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
// Create a class to handle the callback from the action bar | |
public class MyActionBarListener implements ActionBarListener { | |
private ActionBarView actionBarView; | |
@Override | |
public void onCreate(ActionBarView actionBar) { | |
// Store a reference to the actionBar view | |
this.actionBarView = actionBar; | |
} |
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
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.View; | |
import com.socialize.ui.SocializeUI; | |
public class SampleActivity extends Activity { | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
// These can be specified in a config 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
<manifest...> | |
<application...> | |
<!-- Activities Required by AppTribes --> | |
<activity android:name="com.apptribes.ApptribesActivity"/> | |
</application> | |
<!-- Permissions Required by AppTribes --> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
</manifest> |
NewerOlder