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
| public class Runner | |
| { | |
| public async Task<RunResults> Run(ProcessStartInfo info) | |
| { | |
| var process = new Process(); | |
| var runResults = new RunResults(); | |
| //some defaults that HAVE to be in place | |
| info.RedirectStandardOutput = true; | |
| info.RedirectStandardError = true; |
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
| { | |
| "name":"image", | |
| "settings":{ | |
| "uri":"http://localhost:8888/out.jpg" | |
| "index":0 | |
| }, | |
| "commands":[ | |
| { "name":"resize", "args":{"width":100,"height":300} }, | |
| { "name":"combine", "args":{"map":""} } | |
| ] |
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
| let greetings = ["hi";"hello";] | |
| let names = ["john";"micah";] | |
| // trying to end up with ["hi john";"hi micah";"hello john"; "hello micah;"] | |
| // cant use zip-- real life items arent same size | |
| greetings | |
| |> List.fold (fun(accum,greet) -> names |> List.map (fun (name)-> greet +" "+ name) |> List.append accum ) List.empty<string>;; |
OlderNewer