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
| using System; | |
| // ReSharper disable JoinDeclarationAndInitializer | |
| // ReSharper disable InconsistentNaming | |
| namespace SudokuProcedural | |
| { | |
| static class Program | |
| { | |
| static void Main() |
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
| module processor(clk, rxReady, rxData, txBusy, txStart, txData); | |
| input clk; | |
| input[7:0] rxData; | |
| input rxReady; | |
| input txBusy; | |
| output reg txStart; | |
| output reg[7:0] txData; | |
| localparam READ=0, SOLVING=1, WRITE1=2, WRITE2=3; | |
| localparam LEN = 10; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| namespace ConsoleApplication195 | |
| { | |
| static class Program | |
| { | |
| static void Main() |
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 \w+ (\w+ |\(.*\) ){4,}= |
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
| open System.Diagnostics | |
| let N = 100000 | |
| let calc_sync i = i % 10 | |
| let sum_sync() = | |
| async { | |
| let ints = Seq.initInfinite calc_sync |> Seq.take N | |
| return Seq.sum ints | |
| } |
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
| (use '[clojure.algo.monads]) | |
| (require '[clojure.core.async :as async]) | |
| (defmonad async-m | |
| "Monad describing async operations." | |
| [m-result (fn m-result-async [v] | |
| (let [c (async/chan)] | |
| (async/go (async/>! c v)) | |
| c)) |
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
| #time "on" | |
| type State = { remaining: int64; aggregate: int64 } | |
| let div = 10L | |
| let rec skynet num size postback = | |
| if size = 1L then | |
| postback num | |
| else |
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
| #time "on" | |
| type State = { remaining: int64; aggregate: int64 } | |
| let div = 10L | |
| let rec skynet num size postback = | |
| if size = 1L then | |
| postback num | |
| else |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Response><Sms>Nothing to see here.</Sms></Response> |
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
| {{input}} -annotate +10+20 "{{firstName}} {{lastName}}" {{output}} |