Forked from Ajay Patel's Pen D3 REaltime chart .
A Pen by A Non Ymous on CodePen.
services.Configure<MvcOptions>(options => { | |
var jsonFormatters = options.OutputFormatters.OfType<JsonOutputFormatter>(); | |
foreach (var formatter in jsonFormatters) { | |
// Camel-case by default \o/ | |
formatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); | |
} | |
}); |
Forked from Ajay Patel's Pen D3 REaltime chart .
A Pen by A Non Ymous on CodePen.
The F-22 goes really really high (I wish I could say how high, it's impressive as shit, but I can't). That's the real reason it has thrust vectoring and massive control surfaces; it goes up to where you need those to maneuver worth a damn. Other aircraft (even Flanker variants) may be able to go that high, but they can't maneuver when they get up there because they have smaller control surfaces. The fact that this gives the Raptor supermaneuverability at more "conventional" altitudes is a really nice side benefit. And the Raptor's really really fast to boot. It's a race horse that wants to go fast. Pilots have to be careful not to go supersonic on takeoff before they reach the end of the runway. And it's radar is scary accurate (again, I wish I could go into detail). That combination of speed, altitude, the ability to see (very clearly) without being seen? That makes the F-22 an apex predator. It's a Great White Shark or the creature from "Alien." Sure, you can see it if it wants you to, but it's an ambush pr |
<%@ WebHandler Language="c#" Class="Xamarin.Activation.Studio" %> | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.IO; | |
using System.Linq; | |
using System.Web; | |
using System.Net; | |
using System.Text; | |
using MySql.Data.MySqlClient; |
diff --git a/src/Mono.Touch.Activation.Server/DB.cs b/src/Mono.Touch.Activation.Server/DB.cs | |
index ce3a566..01b5098 100644 | |
--- a/src/Mono.Touch.Activation.Server/DB.cs | |
+++ b/src/Mono.Touch.Activation.Server/DB.cs | |
@@ -204,6 +204,8 @@ namespace Mono.Touch.Activation.Server { | |
int max = 0; | |
if (DBNull.Value != reader [0]) | |
max = Convert.ToInt32 (reader [0]); | |
+ if (max == -1) | |
+ return max; |
./build/AddIns/MonoDevelop.TextTemplating/Mono.TextTemplating.Tests.dll | |
./build/tests/MacPlatform.Tests.dll | |
./build/tests/Mono.TextTemplating.Tests.dll | |
./build/tests/MonoDevelop.Debugger.Tests.dll | |
./build/tests/MonoDevelop.TextEditor.Tests.dll | |
./build/tests/MonoDevelop.VersionControl.Git.Tests.dll | |
./build/tests/MonoDevelop.VersionControl.Subversion.Tests.dll | |
./build/tests/MonoDevelop.XmlEditor.Tests.dll | |
./build/tests/UnitTests.dll | |
./src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.Tests/obj/Debug/MonoDevelop.Debugger.Tests.dll |
internal static T GetValueFromYamlOrRaiseError<T> (this Dictionary<object, object> yamlData, string value, Func<T> @default = null, string error = null, object[] args = null) where T : class | |
{ | |
const string genericError = "Could not find {0} matching type {1} in YAML data."; | |
if (!yamlData.ContainsKey (value)) goto error; | |
else if (!(yamlData ["value"] is T)) goto error; | |
else return yamlData [value] as T; | |
error: | |
if (@default != null) return @default (); |
internal static T GetValueFromYamlOrRaiseError<T> (this Dictionary<object, object> yamlData, string value, Func<T> @default = null, string error = null, object[] args = null) where T : class | |
{ | |
const string genericError = "Could not find {0} matching type {1} in YAML data."; | |
if (!yamlData.ContainsKey (value)) goto error; | |
else if (!(yamlData ["value"] is T)) goto error; | |
else return yamlData [value] as T; | |
error: | |
if (@default != null) return @default (); |
http://git.io/GMzzvA |
internal static T GetValueFromYamlOrRaiseError<T> (this Dictionary<object, object> yamlData, string value, Func<T> @default = null, string error = null, object[] args = null) where T : class | |
{ | |
const string genericError = "Could not find {0} matching type {1} in YAML data."; | |
if (!yamlData.ContainsKey (value)) goto error; | |
else if (!(yamlData ["value"] is T)) goto error; | |
else return yamlData [value] as T; | |
error: | |
if (@default != null) return @default (); |