Tutorial by Examples: basic

import csv #------ We will write to CSV in this function ------------ def csv_writer(data, path): #Open CSV file whose path we passed. with open(path, "wb") as csv_file: writer = csv.writer(csv_file, delimiter=',') for line in data: ...
PSR-1 is an accepted recommendation and outlines a basic standard recommendation for how code should be written. It outlines naming convetions for classes, methods and constants. It makes adopting PSR-0 or PSR-4 recommendations a requirement. It indicates which PHP tags to use: <?php and &lt...
Automatic routing for the DRF, can be achieved for the ViewSet classes. Assume that the ViewSet class goes by the name of MyViewSet for this example. To generate the routing of MyViewSet, the SimpleRouter will be utilized. On myapp/urls.py: from rest_framework import routers router = ...
There are two basic ways that the asset pipeline is used: When running a server in development mode, it automatically pre-processes and prepares your assets on-the-fly. In production mode, you’ll probably use it to pre-process, versionize, and compress and compile your assets. You can do s...
To develop applications for iOS, you need to have a Mac, an Apple developer account (to publish to the App Store; costs $100 annually), the free XCode application on your Mac, and ideally some iOS devices to test with. Experience with either of the programming languages Swift or Objective-C is necc...
override func numberOfSections(in tableView: UITableView) -> Int { // You need to return minimum one to show the cell inside the tableview return 1 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { // return the number of rows i...

Page 43 of 43