Tutorial by Examples: st

import pandas as pd data = [ {'name': 'Daniel', 'country': 'Uganda'}, {'name': 'Yao', 'country': 'China'}, {'name': 'James', 'country': 'Colombia'}, ] df = pd.DataFrame(data) filename = 'people.csv' df.to_csv(filename, index=False, encoding='utf-8')
REpresentational State Transfer (REST) is an architectural style used for web development, introduced and defined in 2000 by Roy Fielding. See it on wiki : REST wiki It's based on HTTP protocol (HTTP on Wiki), HTTP requests (GET, POST, PATCH, DELETE...) / responses codes (404, 400, 200, 201, 500.....
WRITE record COMMIT
Bootstrap provides a couple of classes for advanced table styling. Striped rows You will have a table with striped rows, if you add .table-striped class: <table class="table table-striped"> <thead><tr><th>First Name</th><th>Last name</th><...
CREATE INDEX index_name ON TABLE base_table_name (col_name, ...) AS 'index.handler.class.name' [WITH DEFERRED REBUILD] [IDXPROPERTIES (property_name=property_value, ...)] [IN TABLE index_table_name] [PARTITIONED BY (col_name, ...)] [ [ ROW FORMAT ...] STORED AS ... | STORED BY ... ] [LO...
app.js angular.module('myApp', ['ui.router']) .service('User', ['$http', function User ($http) { this.getProfile = function (id) { return $http.get(...) // method to load data from API }; }]) .controller('profileCtrl', ['profile', function profileCtrl (profile) { // i...
url: /api/data/v8.0/contacts json: { "firstname" : "New", "lastname" : "Contact", "[email protected]" : "/accounts(c6da77b6-d53e-e611-80b9-0050568a6c2d)" } As the parentcustomerid can be an account or ...
First of all download Yii Booster latest end user bundle from here. Download it, unpack its contents to some directory inside your web application. Its recomended to unpack it to the extensions directory. Rename the folder from yiibooster-<version_number> to just yiibooster for convenience. ...
If your page is for displaying or editing information about a particular type of record, it may be helpful to use a standard controller to reduce the amount of boilerplate code you need to write. By using a standard controller, your page will be displayed with an ?id=SALESFORCE_ID parameter, and yo...
add_action('init', 'process_post_data'); function process_post_data() { if( isset( $_POST ) ) { // process $_POST data here } }
add_action('init', 'process_get_data'); function process_get_data() { if( isset( $_GET ) ) { // process $_GET data here } }
add_action( 'init', function() { register_post_type( 'event', array( 'public' => true, 'label' => 'Events' ); ); }); Registers a new custom post type with a label Events and a slug event
Please note that this example uses OpenCV 3.1. import org.opencv.core.Mat; import org.opencv.core.MatOfRect; import org.opencv.core.Point; import org.opencv.core.Rect; import org.opencv.core.Scalar; import org.opencv.imgcodecs.Imgcodecs; import org.opencv.imgproc.Imgproc; import org.opencv.o...
You can use the raw interpolator if you want a String to be printed as is and without any escaping of literals. println(raw"Hello World In English And French\nEnglish:\tHello World\nFrench:\t\tBonjour Le Monde") With the use of the raw interpolator, you should see the following printed in the ...
Sample build.gradle file: plugin: 'java' repositories { mavenLocal() mavenCentral() jcenter() } dependencies { compile "org.testng:testng:6.9.12" } test { useTestNG() { suiteXmlBuilder().suite(name: 'Sample Suite') { test(name : 'Sample Te...
What are themes? There are several visual appearance out there for Bootstrap, which can be found from sources, such as Bootswatch, which are modifying the bootstrap.min.css file. You can also create your own theme this way. When to modify themes and when to add new rules to a site.css file? When ...
Start from a Cython program with a entrypoint: def do_stuff(): cdef int a,b,c a = 1 b = 2 c = 3 print("Hello World!") print([a,b,c]) input("Press Enter to continue.") Create a setup.py file in the same folder: from distutils.core import set...
Represents an instance of a single, complete approval process. ProcessInstance record is created every time for particular object record which is submitted for approval. Its is also read-only object. We can describe, query and retrieve the approval processes Instance. ~ Query ~ SELECT CompletedDat...
Both objects ProcessInstanceStep & ProcessInstanceWorkItem are instances of process steps that are created for particular ProcessInstance. ProcessInstanceStep represents a step instance in an approval process (ProcessInstance) on which users has already acted and ProcessInstanceWorkItem represen...
The ProcessInstanceHistory is the object which is neither searchable nor queryable & this is the read-only object which shows all steps and pending approval requests associated with an approval process (ProcessInstance). But we can use this object to replicate the related list functionality of t...

Page 240 of 369