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
using System; | |
using System.Data; | |
using System.Net.Mime; | |
using System.Text; | |
using System.Net; | |
using System.Xml; | |
using System.IO; | |
public class ConnectWBX | |
{ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Xml; | |
using URL = System.Uri; | |
namespace ConnectADP | |
{ | |
public class ConnectADP |
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
void Main() | |
{ | |
new NUnitLite.Runner.TextUI().Execute(new[]{"-noheader"}); | |
} | |
public class Dog | |
{ | |
public string Howl() | |
{ | |
return "awhooo!"; |
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
void Main() | |
{ | |
var me = new person{name = "Romaine", weight = 170, height = 83}; | |
Console.WriteLine(new Maybe<int>(me.height).bind(() => new Maybe<int>((703 * me.weight) / (me.height * me.height)))); | |
} | |
class Maybe<T>; | |
{ | |
public T value; |
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
def binary_search(seq, value): | |
if len(seq) == 0: | |
return False | |
else: | |
mid = len(seq) // 2 | |
if value == seq[mid]: | |
return True | |
elif value < seq[mid]: | |
return binary(seq[:mid], value) | |
elif value > seq[mid]: |
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
class Node: | |
def __init__(self, value): | |
self.next = None | |
self.value = value | |
class List: | |
def __init__(self, value): | |
self.head = Node(value) | |
def insert(self, value): |
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
%Convert Struct to XML | |
function obj = struct2xml(param) | |
doc = com.mathworks.xml.XMLUtils.createDocument(inputname(1)); | |
root = doc.getDocumentElement; | |
obj = xmlwrite(parse(param, doc, root)); | |
end | |
function obj = parse(param, doc, root) |