Tutorial by Examples: amp

drop table table01; drop table table02; create table table01 ( code int, name varchar(50), old int ); create table table02 ( code int, name varchar(50), old int ); truncate table table01; insert into table01 values (1, 'A', 10); insert in...
export function myDirective($location: ng.ILocationService): ng.IDirective { return { link: (scope: ng.IScope, element: ng.IAugmentedJQuery, attributes: ng.IAttributes): void => { element.text("Current URL: " + $location.url()); ...
With this line we will install all the necessary packages in one step, and the last update: pacman -Syu apache php php-apache mariadb HTTP Edit /etc/httpd/conf/httpd.conf Change ServerAdmin [email protected] as you need. The folder of the WEB Pages by default is ServerRoot "/etc/httpd&q...
This example shows a call of AfxBeginThread that starts the worker thread and an example worker thread procedure for that thread. // example simple thread procedure. UINT __cdecl threadProc(LPVOID rawInput) { // convert it to the correct data type. It's common to pass entire structures this ...
.populate() in Mongoose allows you to populate a reference you have in your current collection or document with the information from that collection. The previous may sound confusing but I think an example will help clear up any confusion. The following code creates two collections, User and Post: ...
/* SD card basic file example This example shows how to create and destroy an SD card file The circuit: * SD card attached to SPI bus as follows: ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 4 created Nov 2010 by David A. Mellis modified 9 Apr 2012 by ...
class my_model(models.Model): _name = "my.model" name = fields.Char('Name') @api.multi def foo_manipulate_records_1(self): """ function returns list of tuples (id,name) """ return [(i.id,i.name) for i in self] @...
Examples below demonstrate how to call Python function from JavaScript in Odoo 8. In the examples we call methods of my_model described early on this page. We assume that in the following examples "list_of_ids" variable contains list(array) of ids of existing records of "my.model&quo...
The showcase of Primefaces components you can find here and documentation is here Frontend needs to be saved as a XHTML file. This file can contain JSF, JSTL, JSP, HTML, CSS, jQuery, javaScript and its framework and more front-end technologies. Please, do not mix JSF and JSP technologies together....
Download the Stripe API Library and place it in vendor Folder source : [https://github.com/stripe/stripe-php][1] include the library in your controller use Stripe\BalanceTransaction; use Stripe\Charge; use Stripe\Stripe; require_once('../vendor/stripe/init.php'); set the strip key \Stripe...
Makes entering numbers a bit handier by showing a set of arrows on the right side of the input. HTML <link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script&gt...
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var foo = new Dependency(); var bar = new ClassWithDependency(); bar.DoSomething(foo); //Inject dependency as method parameter ...
<div class="container" id="con"> <div class="row"> <div class="span12"> <div class="well"> <h1> Header </h1> </div> </div&gt...
$color-purple-bg: #AF6EC4; $color-purple-border: #5D0C66; $color-yellow-bg: #E8CB48; $color-yellow-border: #757526; .tooltip { position: relative; &--arrow-down { @include pointer('bottom', 30px, ($color-purple-border, $color-purple-bg), 15px); } ...
_refreshListView(){ //Start Rendering Spinner this.setState({refreshing:true}) this.state.cars.push( {name:'Fusion',color:'Black'}, {name:'Yaris',color:'Blue'} ) //Updating the dataSource with new data this.setState({ dataSource: this.state.data...
RefreshControl is used inside a ScrollView or ListView to add pull to refresh functionality. at this example we will use it with ListView 'use strict' import React, { Component } from 'react'; import { StyleSheet, View, ListView, RefreshControl, Text } from 'react-native' class RefreshContr...
import tensorflow as tf filename_queue = tf.train.string_input_producer(["file.csv"], num_epochs=1) reader = tf.TextLineReader() key, value = reader.read(filename_queue) col1, col2 = tf.decode_csv(value, record_defaults=[[0], [0]]) with tf.Session() as sess: sess.run(tf.initializ...
To randomly shuffle the examples, you can use tf.train.shuffle_batch function instead of tf.train.batch, as follows: parsed_batch = tf.train.shuffle_batch([serialized_example], batch_size=100, capacity=1000, min_after_dequeue=200) tf.train.shuffle_batch (as well as tf.train.batch) crea...
@Test annotation can be applied to any class or method. This annotation marks a class or a method as part of the test. @Test at method level - mark annotated method as test method @Test at class level The effect of a class level @Test annotation is to make all the public methods of the class ...
const Koa = require('koa') const app = new Koa() app.use(async ctx => { ctx.body = 'Hello World' }) app.listen(8080)

Page 23 of 46