This file contains hidden or 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
| [Fact] | |
| public void Parser_parses_xml_in_correct_order() | |
| { | |
| // Arrange : input values | |
| string xml = "<outer><inner /></outer>"; | |
| var parser = new Parser(); | |
| // Arrange : record expectations | |
| var mocks = new MockRepository(); | |
| IHandler handler = mocks.CreateMock<IHandler>(); |
This file contains hidden or 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
| <html> | |
| <head> | |
| <script type="text/javascript"> | |
| function $(el){ | |
| return document.getElementById(el); | |
| } | |
| function count(){ | |
| var option = $("opt").value; | |
| var word = $("txt").value; |
This file contains hidden or 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
| <script type="text/javascript"> | |
| function Item(value){ | |
| this.value = value; | |
| this.next = null; | |
| } | |
| function List(value) { | |
| this.head = new Item(value); | |
| this.tail = null; | |
| this.length = 1; |
This file contains hidden or 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
| <script type="text/javascript"> | |
| function fib(num1, num2){ | |
| var sum=num1 + num2; | |
| if (sum > upper){ | |
| return; | |
| } | |
| else{ | |
| document.write("<br />" + sum); | |
| fib(num2, sum); |
This file contains hidden or 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
| <script type="text/javascript"> | |
| function balancedParens(expr){ | |
| var tokens={ | |
| "(":")", | |
| "[":"]", | |
| "{":"}" }; | |
| var beginners=[]; | |
| var finishers=[ |
This file contains hidden or 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
| //GUESS.JS | |
| var register; | |
| function Register(){ | |
| this.low = 0; | |
| this.high = 100; | |
| this.last = 0; | |
| } |
This file contains hidden or 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
| //PWD.JS | |
| var Ret=function(){ | |
| this.status = true; | |
| this.message = ""; | |
| }; | |
| function validateThePassword(vl){ | |
| var ret=new Ret(); |
This file contains hidden or 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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>jQuery UI Autocomplete - Combobox</title> | |
| <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"> | |
| <script src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
| <script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script> | |
| <style> | |
| .custom-combobox { |
This file contains hidden or 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
| // | |
| // Options.cs | |
| // | |
| // Authors: | |
| // Jonathan Pryor <jpryor@novell.com> | |
| // | |
| // Copyright (C) 2008 Novell (http://www.novell.com) | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining | |
| // a copy of this software and associated documentation files (the |
NewerOlder