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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<section name="aleaCUDASettings" type="Alea.CUDA.Settings, Alea.CUDA" /> | |
</configSections> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
</startup> | |
<aleaCUDASettings> | |
<monitor name="default" /> |
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
@echo off | |
IF [%1] EQU [] goto noInterface | |
:: OPENDNS - OpenDNS, LLC,US | |
set DNS1=208.67.222.123 | |
:: Google DNS | |
set DNS2=8.8.4.4 | |
for /f "skip=2 tokens=1,2,3*" %%i in ('netsh int show interface') do ( |
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
public class FSharpOptionConverter : JsonConverter | |
{ | |
private static MethodInfo _getInnerValue = typeof (FSharpOptionConverter).GetMethod("GetInnerValue", | |
BindingFlags.Instance | | |
BindingFlags.NonPublic); | |
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) | |
{ | |
if (value != null) | |
{ | |
var optionValueType = value.GetType().GetGenericArguments().Single(); |