Tutorial by Examples: c

Use the GitHub repository to get the entire code: https://github.com/firebase/functions-samples/blob/master/quickstarts/email-users Copy or clone the repository in your computer. Now go to your Firebase Console Create a Firebase Project using the Firebase Console. Enable the Google Provid...
$BucketName = 'trevorrekognition' $FileName = 'kitchen.jpg' New-S3Bucket -BucketName $BucketName Write-S3Object -BucketName $BucketName -File $FileName $REKResult = Find-REKLabel -Region us-east-1 -ImageBucket $BucketName -ImageName $FileName $REKResult.Labels After running the script ab...
$BucketName = 'trevorrekognition' ### Create a new AWS S3 Bucket New-S3Bucket -BucketName $BucketName ### Upload two different photos of myself to AWS S3 Bucket Write-S3Object -BucketName $BucketName -File myphoto1.jpg Write-S3Object -BucketName $BucketName -File myphoto2.jpg ### Perform...
(defn x [a b] (* a b)) ;; public function => (x 3 2) ;; 6 => (x 0 9) ;; 0 (defn- y [a b] (+ a b)) ;; private function => (x (y 1 2) (y 2 3)) ;; 15
var Human = function() { this.canWalk = true; this.canSpeak = true; // }; Person.prototype.greet = function() { if (this.canSpeak) { // checks whether this prototype has instance of speak this.name = "Steve" console.log('Hi, I am ' + this.name); } else{ c...
HTML <div :class="classes"> <input v-model="compValue" type="text" class="form-control" @keydown.enter = 'enter' @keydown.down = 'down' @keydown.up = 'up' @input = "cha...
This will be our example data frame: df = pd.DataFrame({"color": ['red', 'blue', 'red', 'blue']}, index=[True, False, True, False]) color True red False blue True red False blue Accessing with .loc df.loc[True] color True red True red ...
This will be our example data frame: color name size 0 red rose big 1 blue violet small 2 red tulip small 3 blue harebell small Accessing a single column from a data frame, we can use a simple comparison == to compare every element in the column to the given...
Let's consider this example, that outputs the squares of the numbers 3, 5, and 7: let nums = [3, 5, 7] let squares = nums.map(function (n) { return n * n }) console.log(squares) Run in RunKit The function passed to .map can also be written as arrow function by removing the function keywor...
let [x,y, ...nums] = [0, 1, 2, 3, 4, 5, 6]; console.log(x, y, nums); let {a, b, ...props} = {a:1, b:2, c:3, d:{e:4}} console.log(a, b, props); let dog = {name: 'fido', age: 3}; let {name:n, age} = dog; console.log(n, age);
class Mammel { constructor(legs){ this.legs = legs; } eat(){ console.log('eating...'); } static count(){ console.log('static count...'); } } class Dog extends Mammel{ constructor(name, legs){ super(legs); this.name = name; } sleep(){ super...
module.exports = { entry: './src/index', output: { path: __dirname + '/build', filename: 'bundle.js' }, module: { rules: [{ test: /\.tsx?$/, loader: 'ts-loader', exclude: /node_modules/ }] }, res...
This is a minimal tsconfig to get you up and running. { "include": [ "src/*" ], "compilerOptions": { "target": "es5", "jsx": "react", "allowSyntheticDefaultImports": tr...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; interface AppProps { name: string; } interface AppState { words: string[]; } class App extends Component<AppProps, AppState> { constructor() { super(); this.state = { ...
This example will demonstrate how to get started with Firebase in your web apps with JavaScript. We are going to add a text child in our Firebase Database and display it in realtime on our web app. Lets get started. Go to the Firebase Console - https://console.firebase.google.com and create a...
Sample Data XML Document First, let's define a sample XML document named "books.xml" in our current directory: <?xml version="1.0" encoding="UTF-8"?> <books> <book> <title>Of Mice And Men</title> <author>Joh...
This is an enumeration for const creation. Go compiler starts iota from 0 and increments by one for each following constant. The value is determined at compile time rather than run time. Because of this we can't apply iota to expressions which are evaluated at run time. Program to use iota in cons...
It's possible to have multiple .NET Core SDKs and Runtimes available on disk. You can select the versions for each separately. To select the version of the SDK to use, use global.json. To select the version of the shared framework to use, target the specified framwork in the .csproj file (or proj...
Lightweight simple translation module with dynamic json storage. Supports plain vanilla node.js apps and should work with any framework (like express, restify and probably more) that exposes an app.use() method passing in res and req objects. Uses common __('...') syntax in app and templates. Stores...
To use Autofac in your project, all you have to do is install Autofac from NuGet Package Manager. Open the solution that want to use Autofac in, then select Manager NuGet Packages for Solution... by going to: Tools -> NuGet Package Manager -> Manager NuGet Packages for Solution... In the N...

Page 746 of 826