Skip to content

Instantly share code, notes, and snippets.

View thegabriele97's full-sized avatar

Salvatore Gabriele La Greca thegabriele97

View GitHub Profile
package hydraulic;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
import hydraulic.exceptions.*;
/**
* Main class that act as a container of the elements for
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="output" path="bin"/>
</classpath>
package schools;
import static java.util.stream.Collectors.counting;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.toList;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Collection;
/**
* returns a list of strings with format
* {@code "### - XXXXXX"}, where
* {@code ###} represents the number of schools (not branches)
* and {@code XXXXXX} represents the name of the municipality.
* If a school has more than one branch in a municipality
* it must be counted only once.
*
* @return a collection of strings with the counts
*/
#include <iostream>
#include <string>
#include "AM/Showcase.hpp"
#include "AM/Person.hpp"
int main() {
//CREATE PERSON OBJ
Person gabriele("gabriele", "la greca");
Person carlotta("carlotta", "la greca");
#include "MainFrame.h"
#include "AddActivity.h"
#include "AddActivityList.h"
#include <wx/aboutdlg.h>
#include <list>
#include <iterator>
using namespace std;
MainFrame::MainFrame(wxWindow* parent, Board* _board) : MainFrameBaseClass(parent){
#include "DropTargetListCtrl.h"
DropTargetListCtrl::DropTargetListCtrl(wxListCtrl* _list) {
list = _list;
}
void DropTargetListCtrl::newDropEvent(int _index, wxPoint _start, ActivityList* _al) {
start = _start;
index = _index;
al = _al;
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <pthread.h>
#include <signal.h>
bool waiting = true;
#!/bin/bash
if ! [ $# -eq 1 ]; then
exit 1
fi
for file in $(ls $1 | grep '-'); do
str=""
cnt=$(echo $file | cut -f1 -d'.' | wc -c)
i=1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Logging;
using System.IO;