Skip to content

Instantly share code, notes, and snippets.

Migration Summary

Migrated 13 UI test cases from FTR to Scout, preserving the nested describe structure and all test scenarios for document comparison feature in both data view and ES|QL modes.

Code

/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the "Elastic License
public class DivideEtImperaVocali {
public DivideEtImperaVocali() {
char[] array = new char[]{'a', 'a', 'e', 'u', 'e', 'f', 'f'};
boolean result = vocaliPari(array, 0, array.length-1);
System.out.println("vocali pari? result:" + result);
}
public boolean vocaliPari(char[] array, int i, int f) {
if (i == f) {
@csr
csr / categories.txt
Last active April 7, 2018 20:01
Plaid-Complete-Categories-List
Accessories Store
Accounting and Bookkeeping
ACH
Acorns
Acupuncture
Adult
Adult Education
Adult Entertainment
Advertising Agencies and Media Buyers
Advertising and Marketing
//
// ExamplesDefaults.swift
// SwiftCharts
//
import UIKit
import SwiftCharts
struct ExamplesDefaults {
import UIKit
import SwiftCharts
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing
class AnalysisController: BaseViewController {
let monthData: [Int: [String: Float]] = [0: ["Jan": 20],
1: ["Feb": 4],
2: ["Mar": 20],
@csr
csr / ViewController.swift
Created June 27, 2017 18:24
Thanks for helping out with this!
import UIKit
import SwiftCharts
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing
class AnalysisController: UIViewController {
let monthData: [Int: [String: Float]] = [0: ["Jan": 20],
1: ["Feb": 4],
2: ["Mar": 20],
import UIKit
import SwiftCharts
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing
class AnalysisController: BaseViewController {
let monthData: [Int: [String: Float]] = [0: ["Jan": 20],
1: ["Feb": 4],
2: ["Mar": 20],
import UIKit
import SwiftCharts
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing
class AnalysisController: UIViewController {
let monthData: [Int: [String: Float]] = [0: ["Jan": 20],
1: ["Feb": 4],
2: ["Mar": 20],
#include <stdio.h>
struct Film {
int codiceFilm;
int codiceRegista;
int annoProduzione;
int durata;
char titolo[100];
char genere[100];
};
void bubbleSort(int vettore[], int lunghezzaArray) {
int tmp;
for (int i = 0; i < lunghezzaArray-1; i++) {
if (vettore[i] > vettore[i+1]) {
tmp = vettore[i];
vettore[i] = vettore[i+1];
vettore[i+1] = tmp;
}
}
}