This file contains hidden or 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
var express = require("express"); | |
/* Reimplement this function to answer questions. */ | |
var myName = function(matches) { | |
return "Tomas"; | |
}; | |
var yourName = function(matches) { | |
return matches[1]; |
This file contains hidden or 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
private string _connectionStringKey = "MyCloudStorage"; | |
private string _containerName = "mycontainer"; // important with lower case letters | |
public ActionResult Index() | |
{ | |
ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; | |
var files = GetFiles(); | |
return View(model: files); | |
} |
This file contains hidden or 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
val remove_card_tests = start_string | |
val should_thrown_exception_if_not_in_list = | |
assert_raise ((fn y => remove_card ([(Spades, Jack), (Hearts, Num 5)], (Diamonds, Num 4), CardNotFound)), CardNotFound) | |
val removes_first_entry_if_in_list = | |
assert_equal([(Diamonds, Num 8), (Spades, Jack), (Hearts, Ace)], | |
remove_card ([(Hearts, Ace), (Diamonds, Num 8), (Spades, Jack), (Hearts, Ace)], (Hearts, Ace), CardNotFound), | |
card_list_formatter) |
This file contains hidden or 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.Linq.Expressions; | |
using System.Text; | |
namespace FileGenerator | |
{ | |
class Program | |
{ |
This file contains hidden or 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; | |
using System.Threading.Tasks; | |
namespace ParallellDemo | |
{ | |
public class Worker |
This file contains hidden or 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; | |
using NUnit.Framework; | |
using Raven.Abstractions.Data; | |
using Raven.Client.Document; | |
using Raven.Client.Indexes; |
This file contains hidden or 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var helloB = new HelloB() {PropB = "PropB"}; | |
Console.WriteLine("HelloB.PropB: " + helloB.PropB); | |
HelloA helloA = helloB; | |
Console.WriteLine("HelloA.PropA: " + helloA.PropA); | |
helloA.PropA = "PropA"; | |
Console.WriteLine("HelloA.PropA: " + helloA.PropA); |
This file contains hidden or 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
public class JpgProcessor : MediaTypeFormatter | |
{ | |
public JpgProcessor() | |
{ | |
SupportedMediaTypes.Add(new MediaTypeHeaderValue("application/jpg")); | |
} | |
protected override object OnReadFromStream(Type type, Stream stream, HttpContentHeaders contentHeaders) | |
{ | |
throw new NotImplementedException(); | |
} |
This file contains hidden or 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; | |
namespace DynamicTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |