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.Linq; | |
namespace SubjWorldValue { | |
class Program { | |
static void Main() { | |
var uim = new UIM(); | |
//var uim2 = uim.AddListenerx(w => w.BPM, (w, i) => w.Set(w1 => w1.Resp, i)); | |
var uim2 = uim.AddBPMListener((w, i) => w.SetResp(i)); |
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 ImmutableArrays { | |
class Program { | |
static void Main() { | |
const int I = 1000000; | |
var sw = new Stopwatch(); |
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); | |
input clk; | |
input [7:0] rxData; | |
input rxReady; | |
input txBusy; | |
output reg txStart; | |
output reg[7:0] txData; | |
integer count81; // Number of cells received/sent over serial | |
reg[8:0] possible[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
{-# LANGUAGE BangPatterns #-} | |
import Data.Bits | |
import Data.List | |
import qualified Data.Vector.Unboxed as UV | |
type Grid = UV.Vector PossSet | |
type PossSet = Int | |
type Index = Int | |
type Value = Int | |
data Region = Row Int | Col Int | Sq Int deriving(Show) | |
line = "0 0 12 0 0 0 21 0 0 11 0 0 0 7 0 0 0 0 3 17 0 0 9 0 24 0 0 0 0 17 0 0 18 0 0 11 0 0 0 0 0 22 0 0 0 1 13 20 0 0 4 1 2 8 9 0 0 0 3 0 0 0 24 20 0 0 6 0 0 0 0 0 0 22 11 21 22 24 23 0 0 4 10 5 0 0 0 9 18 1 0 0 15 0 0 3 8 0 0 0 11 0 0 7 0 24 6 0 2 23 17 4 0 0 12 0 0 0 0 0 0 0 15 0 0 0 0 0 0 0 17 9 21 0 0 0 15 0 19 0 0 0 0 18 0 0 0 0 16 14 0 0 0 5 0 4 22 11 0 10 0 0 0 16 17 0 0 12 0 1 13 9 25 0 8 0 0 6 0 3 0 18 1 0 0 0 0 14 21 7 0 0 0 9 23 19 0 0 2 0 0 9 0 17 8 0 15 25 0 0 12 0 0 4 0 0 2 0 0 11 20 0 21 0 0 0 13 7 0 0 23 3 0 0 0 0 0 20 0 0 0 0 0 0 10 0 18 0 4 22 13 0 18 0 5 2 0 0 0 0 0 0 4 0 0 3 0 0 0 8 0 1 0 7 23 0 0 0 16 23 0 0 7 0 0 1 25 0 0 5 0 0 0 0 0 24 0 14 0 0 0 0 0 11 25 0 0 12 0 0 0 0 0 23 21 20 0 14 4 0 0 0 0 0 0 8 12 20 19 0 0 0 0 23 0 0 0 0 0 11 24 0 0 0 |
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 |
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
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
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); | |
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; |
OlderNewer