Skip to content

Instantly share code, notes, and snippets.

View esercizio.c
#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);
}
View gist:eff7f4a65ae8f0951a9d99ab7578f874
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;
}
}
}
View gist:98b7eaa6aac3d792bee276a7416e739e
#include <stdio.h>
struct Film {
int codiceFilm;
int codiceRegista;
int annoProduzione;
int durata;
char titolo[100];
char genere[100];
};
View AnalysisController.swift
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],
View AnalysisController.swift
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 Jun 27, 2017
Thanks for helping out with this!
View ViewController.swift
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],
View AnalysisController.swift
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],
View ExamplesDefaults.swift
//
// ExamplesDefaults.swift
// SwiftCharts
//
import UIKit
import SwiftCharts
struct ExamplesDefaults {
@csr
csr / categories.txt
Last active Apr 7, 2018
Plaid-Complete-Categories-List
View categories.txt
Accessories Store
Accounting and Bookkeeping
ACH
Acorns
Acupuncture
Adult
Adult Education
Adult Entertainment
Advertising Agencies and Media Buyers
Advertising and Marketing
View vowels.java
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) {