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
[Option("q", "quiet", HelpText = "Suppress summary message.")] | |
public bool Quiet { get; set; } |
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
[Option('q', "quiet", HelpText = "Suppress summary message.")] | |
public bool Quiet { get; set; } |
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 CommitSubOptions | |
{ | |
[Option('p', "patch", | |
HelpText = "Use the interactive patch selection interface to chose which changes to commit.")] | |
public bool Patch { get; set; } | |
[Option('a', "all", | |
HelpText = "Tell the command to automatically stage files that have been modified.")] | |
public bool All { get; set; } | |
} |
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 Options | |
{ | |
public OptionsWithVerbsHelp() | |
{ | |
CommitVerb = new CommitSubOptionsHelp {Patch = true}; | |
} | |
[VerbOption("add", HelpText = "Add file contents to the index.")] | |
public AddSubOptions AddVerb { get; set; } |
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 Options : CommandLineOptionsBase | |
{ | |
// option attributes as above... | |
[HelpVerbOption] | |
public string GetUsage(string verb) | |
{ | |
bool found; | |
var instance = (CommandLineOptionsBase) CommandLineParser.GetVerbOptionsInstanceByName(verb, this, out found); | |
var verbsIndex = verb == null || !found; | |
var target = verbsIndex ? this : instance; |
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
function sum() | |
{ | |
a = Int.of_string(Dom.get_value(#vala)); | |
b = Int.of_string(Dom.get_value(#valb)); | |
#res = a + b; | |
} | |
function start() { | |
<div>EasyCalc</div> | |
<div> |
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
a = Int.of_string(Dom.get_value(#vala)); |
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
#res = a + b; |
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 Program | |
{ | |
static void Main(string[] args) | |
{ | |
var obj1 = new ToBeConfigured(with => | |
{ | |
with.UseB(); | |
with.SetParam("something"); | |
}); |
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
(* | |
Description: Simple program to change naming conventions of my C# test fixtures. | |
Purpose: Learn F#! | |
Author: Giacomo Stelluti Scala | |
Created: 2013-01-28 | |
*) | |
open System | |
open System.IO | |
open System.Globalization | |
open System.Text |
OlderNewer