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
#!/bin/sh -x | |
#This script removes Mono from an OS X System. It must be run as root | |
rm -r /Library/Frameworks/Mono.framework | |
rm -r /Library/Receipts/MonoFramework-* | |
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do | |
(cd ${dir}; |
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
(* | |
* Minimal AssemblyInfo.fs for automatic help screen generation in Command Line Parser Library 2.0.x-pre. | |
*) | |
module YourProject.AssemblyInfo | |
open System.Reflection | |
[<assembly: AssemblyCopyright("Copyright (c) 2015 Your Name Here")>] | |
do() |
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
{-| | |
Haskell port of OCaml http://pastebin.com/a66MDZkP | |
-} | |
import qualified Data.ByteString.Lazy as B | |
import Data.Word8 | |
type Point = (Double, Double) | |
type Rgb = (Double, Double, Double) | |
tga :: (Point -> Rgb) -> Int -> Int -> String -> IO () |
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 : 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
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
a = Int.of_string(Dom.get_value(#vala)); |
OlderNewer