Data type | Python type | Description |
---|---|---|
DT_FLOAT | tf.float32 | 32 bits floating point. |
DT_DOUBLE | tf.float64 | 64 bits floating point. |
DT_INT8 | tf.int8 | 8 bits signed integer. |
DT_INT16 | tf.int16 | 16 bits signed integer. |
DT_INT32 | tf.int32 | 32 bits signed integer. |
DT_INT64 | tf.int64 | 64 bits signed integer. |
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 logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
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 namespace Console; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Console\Command; | |
/** | |
* Author: Chidume Nnamdi <kurtwanger40@gmail.com> | |
*/ |
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 namespace Console; | |
use Symfony\Component\Console\Command\Command as SymfonyCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; | |
/** | |
* Author: Chidume Nnamdi <kurtwanger40@gmail.com> | |
*/ |
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 'core-js' | |
import * as functions from 'firebase-functions' | |
import * as admin from 'firebase-admin'; | |
import * as cors from 'cors' | |
import * as express from 'express' | |
admin.initializeApp(functions.config().firebase) | |
var contactsRef: admin.database.Reference = admin.database().ref('/contacts') | |
exports.addContact = functions.https.onRequest((request: any, response: any) => { |
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
//This file includes polyfills neede by TypeScript when using es2017, es6 or any above es5 | |
// This file is loaded before the app. You can add your own extra polyfills to this file | |
import 'core-js' |
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 axios from 'axios' | |
import chalk from 'chalk' | |
import * as ora from 'ora' | |
const url: string = "https://us-central1-myreddit-clone.cloudfunctions.net" | |
export const addContact = (answers: any) => { | |
(async () => { | |
try { | |
const spinner = ora('Adding contact ...').start(); |
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
export let questions: Array<Object> = [ | |
{ | |
type: 'input', | |
name: 'firstname', | |
message: 'Enter first name' | |
}, | |
{ | |
type: 'input', | |
name: 'lastname', | |
message: 'Enter Lastname' |