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
| 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
| 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
| 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; | |
| // 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 trigger(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 ROW=0, COL=1, SQ=2; |
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 trigger(clk, rxReady, rxData, txBusy, txStart, txData); | |
| input clk; | |
| input[7:0] rxData; | |
| input rxReady; | |
| input txBusy; | |
| output reg txStart; | |
| output reg[7:0] txData; | |
| integer countIO; | |
| reg[8:0] data[0:8][0:8]; |
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 trigger(clk, rxReady, rxData, txBusy, txStart, txData, memAddr, memWriteEnable, memWrite, memRead); | |
| input clk; | |
| input [7:0] rxData; | |
| input rxReady; | |
| input txBusy; | |
| output reg txStart; | |
| output reg[7:0] txData; | |
| output reg[24:0] memWrite; | |
| output reg[9:0] memAddr; | |
| output reg memWriteEnable; |
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
| set str1=%1 | |
| if x%str1:prints=%==x%str1% goto :regular | |
| :prints | |
| copy %1.jpg "D:\smilebooth\network\eventfolder\prints\" | |
| goto :end | |
| :regular | |
| resizer titos.png %1.jpg %1_overlay.jpg | |
| copy %1_overlay.jpg "D:\smilebooth\network\eventfolder\" | |
| goto :end | |
| :end |
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
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; Copyright (c) Rich Hickey. All rights reserved. | |
| ; The use and distribution terms for this software are covered by the | |
| ; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
| ; which can be found in the file CPL.TXT at the root of this distribution. | |
| ; By using this software in any fashion, you are agreeing to be bound by | |
| ; the terms of this license. | |
| ; You must not remove this notice, or any other, from this software. | |
| ; Note: This code cannot run for very long on clojure 1.3 because |