Skip to content

Instantly share code, notes, and snippets.

View csr's full-sized avatar
🐶

Cesare De Cal csr

🐶
View GitHub Profile
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;
}
}
}
#include <stdio.h>
int acquisisciNumeroCompresoTraValori(int min, int max) {
int inserimento;
printf("Inserisci un numero compreso tra %d e %d: ", min, max);
scanf("%d", &inserimento);
while ((inserimento < min) || (inserimento > max)) {
printf("Inserimento invalido! Riprova: ");
scanf("%d", &inserimento);
}