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
var arrayToTable = function (array, numOfCols) { | |
var arrayLength = array.length; | |
var rows = [{ | |
columns: [] | |
}]; | |
var rowNum = 0; | |
for(var i = 0; i < arrayLength; i++) { | |
var rowMod = (i) % numOfCols; | |
if(rowMod === 0) { | |
rows.push({ |
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 override void Configure(Funq.Container container) | |
{ | |
//ServiceStack v3 | |
//SetConfig(new EndpointHostConfig {AllowFileExtensions = {"dart"}}); | |
//ServiceStack v4 | |
SetConfig(new HostConfig { AllowFileExtensions = {"dart"}}); | |
} |
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
<system.webServer> | |
<staticContent> | |
<remove fileExtension=".dart" /> | |
<mimeMap fileExtension=".dart" mimeType="application/dart" /> | |
</staticContent> | |
</system.webServer> |
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
/// <summary> | |
/// Based on http://jakepoz.com/jake_poznanski__background_load_xna.html | |
/// </summary> | |
public class TextureLoader | |
{ | |
static TextureLoader() | |
{ | |
BlendColorBlendState = new BlendState | |
{ | |
ColorDestinationBlend = Blend.Zero, |
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
Assembly assembly = Assembly.LoadFile("...Assembly1.dll"); | |
Type type = assembly.GetType("TestAssembly.Main"); | |
if (type != null) | |
{ | |
MethodInfo methodInfo = type.GetMethod(methodName); | |
if (methodInfo != null) | |
{ | |
object result = null; | |
ParameterInfo[] parameters = methodInfo.GetParameters(); | |
object classInstance = Activator.CreateInstance(type, null); |
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
string assemblyDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetCallingAssembly().Location); |
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
/// <summary> | |
/// Generic function to pull out string values between two identifiers | |
/// </summary> | |
/// <param name="document"></param> | |
/// <param name="startVal"></param> | |
/// <param name="endVal"></param> | |
/// <returns></returns> | |
private static List<string> GetAllValuesBetweenKeys(string document, string startVal, string endVal) | |
{ | |
string temp = document; |
NewerOlder