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
void Main() | |
{ | |
var manager = new SessionManager(); | |
manager.AddSession(new Session(1, 23, "Mobile")); | |
manager.AddSession(new Session(2, 99, "Web")); | |
manager.AddSession(new Session(3, 23, "Web")); | |
manager.AddSession(new Session(4, 55, "Mobile")); | |
manager.AddSession(new Session(5, 11, "Mobile")); | |
// .... other stuff happens |
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
//#![feature(trace_macros)] | |
//trace_macros!(true); | |
macro_rules! assert_vec_match{ | |
(@empty $vector:expr) => { | |
if $vector.len() > 0 { | |
panic!("Expected an empty vector, but the vector contained {} elements", $vector.len()); | |
} | |
}; |
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.Text; | |
using System.Threading.Tasks; | |
namespace Scratchpad.DailyProgrammer | |
{ | |
public class Dp20140418 | |
{ |
NewerOlder