This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DropTargetListCtrl.h" | |
DropTargetListCtrl::DropTargetListCtrl(wxListCtrl* _list) { | |
list = _list; | |
} | |
void DropTargetListCtrl::newDropEvent(int _index, wxPoint _start, ActivityList* _al) { | |
start = _start; | |
index = _index; | |
al = _al; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
OlderNewer