Tutorial by Examples: and

In this example we define a package header and a package body wit a function. After that we are calling a function from the package that return a return value. Package header: CREATE OR REPLACE PACKAGE SkyPkg AS FUNCTION GetSkyColour(vPlanet IN VARCHAR2) RETURN VARCHAR2; ...
If you want to loop over a list of tuples for example: collection = [('a', 'b', 'c'), ('x', 'y', 'z'), ('1', '2', '3')] instead of doing something like this: for item in collection: i1 = item[0] i2 = item[1] i3 = item[2] # logic or something like this: for item in collec...
// Working with Sublists in Standard mode ... // ... if the record is in context: // Add item 456 with quantity 10 at the end of the item sublist var nextIndex = nlapiGetLineItemCount("item") + 1; nlapiSetLineItemValue("item", "item", nextIndex, 456); nlapiSetL...
// Working with a sublist in Standard Mode in SuiteScript 2.0... require(["N/record"], function (r) { var rec = r.create({ "type": r.Type.SALES_ORDER, "isDynamic": false }); // Set relevant body fields ... // Add line item 45...
Cargo.toml: [package] name = "gettersetter" version = "0.1.0" [lib] proc-macro=true [dependencies] quote="^0.3.12" syn="^0.11.4" src/lib.rs: #![crate_type = "proc-macro"] extern crate proc_macro; use proc_macro::TokenStream; extern c...
Redis provides seven different operations for working with scripts: Eval operations (EVAL, EVALSHA) SCRIPT operations (DEBUG, EXISTS, FLUSH, KILL, LOAD) The EVAL command evaluates a script provided as a string argument to the server. Scripts can access the specified Redis keys named as argum...
g + geom_bar(aes(x = cut, fill = color), position = "fill") + guides(fill = guide_legend(title = NULL))
g + geom_bar(mapping = aes(x = cut, fill = clarity), position = "dodge") + theme(axis.text = element_text(colour = "red", size = 12))
g + geom_histogram(aes(price, fill = cut), binwidth = 500) + labs(x = "Price", y = "Number of diamonds", title = "Distribution of prices \n across Cuts") + theme(plot.title = element_text(colour = "red", face = "italic"), ...
UILabel, UITextField, & UITextView classes have a new property starting from iOS 10 for automatically resizing their font when a user changes their preferred reading size named adjustsFontForContentSizeCategory. Swift @IBOutlet var label:UILabel! if #available(iOS 10.0, *) { label.adju...
In the directory if the xcodeproj, create a new file called Podfile. The following is an example of a Podfile that installs the pod 'AFNetworking' version 1.0 to the app MyApp. target 'MyApp' pod 'AFNetworking', '~> 1.0'
In this example, we create an empty index (we index no documents in it) by defining its mapping. First, we create an ElasticSearch instance and we then define the mapping of our choice. Next, we check if the index exists and if not, we create it by specifying the index and body parameters that cont...
Having type column in a Rails model without invoking STI can be achieved by assigning :_type_disabled to inheritance_column: class User < ActiveRecord::Base self.inheritance_column = :_type_disabled end
In a basic implementation the task module must define a run/1 function that takes a list of arguments. E.g. def run(args) do ... end defmodule Mix.Tasks.Example_Task do use Mix.Task @shortdoc "Example_Task prints hello + its arguments" def run(args) do IO.puts "Hello ...
The XAML file for the spirograph parameters is below. It includes three text boxes for the spirograph parameters and a group of three radio buttons for color. When we give radio buttons the same group name - as we have here - WPF handles the on/off switching when one is selected. <!-- This fi...
<!-- All boilerplate for now --> <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Application.Resources> </Application.Reso...
Read the data of Create And Write To A Stream back into a program. with Ada.Streams.Stream_IO; procedure Main is -- -- ... same type definitions as in referenced example -- Fruit_Colors : array (Fruit) of Color; use Ada.Streams.Stream_IO; F : File_Type; X : Fruit...
package main import "fmt" var V int func F() { fmt.Printf("Hello, number %d\n", V) } This can be built with: go build -buildmode=plugin And then loaded and used from your application: p, err := plugin.Open("plugin_name.so") if err != nil { panic(e...
The following example shows how a set of data obtained from a remote source can be rendered into a component. We make an AJAX request using fetch, which is build into most browsers. Use a fetch polyfill in production to support older browsers. You can also use any other library for making requests ...
Dockerize zookeeper-3.4.6 Create a Dockerfile: ####################################################### # Image: img.reg.3g:15000/zookeeper:3.4.6 ####################################################### FROM img.reg.3g:15000/jdk:1.7.0_67 MAINTAINER [email protected] USER root ENV ZO...

Page 129 of 153