You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, |
| using System; | |
| using System.Diagnostics; | |
| using System.Collections.Generic; | |
| namespace Simplex { | |
| class Simplex { | |
| private double[] c; | |
| private double[,] A; | |
| private double[] b; | |
| private HashSet<int> N = new HashSet<int>(); |
| function isItFriday() { | |
| return new Date().getDay() === 5 ? | |
| 'It is!' : | |
| 'It is not.'; | |
| } | |
| function whenWillItBeFriday() { | |
| var d = 5 - new Date().getDay(); | |
| return d === 0 ? | |
| 'Right now!' : |
| [Test] | |
| public void ComputeResultWithTimeout() | |
| { | |
| var task = Task.Factory.StartNew(() => ComputeResult("bla")); | |
| //task.Wait(0999); | |
| task.Wait(1000); | |
| if (task.IsCompleted) | |
| Console.WriteLine("OK, got: " + task.Result); |
| // Inspired by http://bit.ly/juSAWl | |
| // Augment String.prototype to allow for easier formatting. This implementation | |
| // doesn't completely destroy any existing String.prototype.format functions, | |
| // and will stringify objects/arrays. | |
| String.prototype.format = function(i, safe, arg) { | |
| function format() { | |
| var str = this, len = arguments.length+1; | |
| // For each {0} {1} {n...} replace with the argument in that position. If |