Tutorial by Examples: df

A number of the demonstration macros within this part requires a function which I will explain later. For the moment, please just copy GetFldrNames() to a suitable module. I use this function frequently and keep it, and other like it that I use in many different macros, in a module named “ModGloba...
Here we are managing multiple collection there delegate methods with didselect events. extension ProductsVC: UICollectionViewDelegate, UICollectionViewDataSource{ // MARK: - UICollectionViewDataSource func collectionView(_ collectionView: UICollectionView, numberOfItemsI...
GameScene code example: import SpriteKit protocol GameViewControllerDelegate: class { func callMethod(inputProperty:String) } class GameScene: SKScene { weak var gameViewControllerDelegate:GameViewControllerDelegate? override func didMove(to view: SKView) { gameViewContro...
This uses the Dropbox Java SDK to share a file at "/test.txt" with a specific user: List<MemberSelector> newMembers = new ArrayList<MemberSelector>(); MemberSelector newMember = MemberSelector.email("<EMAIL_ADDRESS_TO_INVITE>"); newMembers.add(newMember); ...
In kafka, each consumer from the same consumer group gets assigned one or more partitions. Note that it is not possible for two consumers to consume from the same partition. The number of flink consumers depends on the flink parallelism (defaults to 1). There are three possible cases: kafka pa...
If you have the following data file cat data.csv 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 maybe you need to read the fourth column of the third line, this would be "24" awk 'NR==3 ...
Consider you have a Parent Frame(Frame-Parent). and 2 child frames(Frame_Son,Frame_Daughter). Lets see various conditions and how to handle. 1.From Parent to Son or Daughter: driver.switchTo().frame("Frame_Son"); driver.switchTo().frame("Frame_Daughter"); 2.From Son to Pa...
/** * An example of nlapiLookupField to retrieve joined fields from a related record */ var repId = nlapiGetFieldValue("salesrep"); // Retrieve multiple fields from the associated Sales Rep var repData = nlapiLookupField("employee", repId, ["email", "f...
require(["N/search", "N/currentRecord"], function (s, cr) { /** * An example of N/search#lookupFields to retrieve joined fields from a related record */ (function () { var record = cr.get(); // Get the Sales Rep record ID var...
Import needed libraries: from gcloud import storage Define needed variables: Client: Bundles the configuration needed for API requests client = storage.Client() Optional params for Client(): project: the project which the client acts on behalf of. Will be passed when creating a topic. If...
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'
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...
namespace Spirograph type MainWindow(app: App, model: Model) as this = inherit MainWindowXaml() let myApp = app let myModel = model let whenLoaded _ = () let whenClosing _ = () let whenClosed _ = () let menuExitHandler _ = System.Wind...
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...
#define kPaperSizeA4 CGSizeMake(595.2,841.8) First of all implement UIPrintPageRenderer protocol @interface UIPrintPageRenderer (PDF) - (NSData*) printToPDF; @end @implementation UIPrintPageRenderer (PDF) - (NSData*) printToPDF { NSMutableData *pdfData = [NSMutableData data]; ...
Background fetch is a new mode that lets your app appear always up-to-date with the latest information while minimizing the impact on battery. You could download feeds within fixed time intervals with this capability. To get started: 1- Check Background Fetch in capabilities screen in Xcode. 2- I...
1- Run the app on a real device and attach it to Xcode debugger. 2- From Debug menu, select Simulate Background Fetch: 3- Now Xcode will pause the app with SIGSTOP signal. Just tap the continue button to let the app do the background fetch. Now you will see that data is fetched and ready for ...
Sometimes you would want to start or remove an action on a specific node at a certain time. For example, you might want to stop a moving object when the user taps the screen. This becomes very helpful when a node has multiple actions and you only wants to access one of them. let move = SKAction.mov...
It is possible to use integer variables with latex. To create a new variable we need the \newcounter{name} command, where name is the name of the new counter. The name must contain only letters. This command creates a new one with name \thename. With this command we can print name variable onto the ...
If you're accepting user input for folder paths, you might need to check for trailing backslashes (\) before building a file path. The FSO.BuildPath method makes this simpler: Const sourceFilePath As String = "C:\Temp" '<-- Without trailing backslash Const targetFilePath As Strin...

Page 18 of 21