Skip to content

Instantly share code, notes, and snippets.

@AlexanderLea
AlexanderLea / gatt_broadcaster_service
Created March 22, 2015 14:54
Demo broadcaster service
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include <stdbool.h>
#include <glib.h>
@AlexanderLea
AlexanderLea / debate-motions
Created March 20, 2015 12:12
Debate Motions
THBT mass genocide is the only way to deal with the global population crisis.
THW stop all trade and negotiations with any country that does not hold free democratic elections
THB that the media holds men and women against different standards
private List<Stop> getStopsBetween(Station _depart, Station _arrive)
{
List<Stop> temp = new List<Stop>();
//Order stops by arrival time (null first?), to ensure that we are checking in order
List<Stop> orderedStops = this.Stops.OrderBy(s => s.ArrivalTime).ToList();
foreach (Stop s in orderedStops)
{
//if stop is departure (i.e. could be first stop, when arrival is null)
if (s.Station == _depart)