Skip to content

Instantly share code, notes, and snippets.

View sergiorgiraldo's full-sized avatar
😃
42

Sérgio Giraldo sergiorgiraldo

😃
42
View GitHub Profile
@sergiorgiraldo
sergiorgiraldo / options.cs
Created May 4, 2012 14:44
Command line option for C# applications
//
// 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
<!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 {
//PWD.JS
var Ret=function(){
this.status = true;
this.message = "";
};
function validateThePassword(vl){
var ret=new Ret();
//GUESS.JS
var register;
function Register(){
this.low = 0;
this.high = 100;
this.last = 0;
}
<script type="text/javascript">
function balancedParens(expr){
var tokens={
"(":")",
"[":"]",
"{":"}" };
var beginners=[];
var finishers=[
<script type="text/javascript">
function fib(num1, num2){
var sum=num1 + num2;
if (sum > upper){
return;
}
else{
document.write("<br />" + sum);
fib(num2, sum);
<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;
<html>
<head>
<script type="text/javascript">
function $(el){
return document.getElementById(el);
}
function count(){
var option = $("opt").value;
var word = $("txt").value;
[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>();