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
(define (fill-pixel! x y colour) | |
(WriteSpiCommand! PASET y) | |
(WriteSpiCommand! CASET x) | |
(WriteSpiCommand! RAMWR) | |
(spi-put SPI_0 colour)) |
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
(load "ICP1_2b_regsim.scm") | |
(define (assemble-and-run p) | |
(define m (make-machine | |
'(cont res val_1 val_2) | |
`((+ ,+)(* ,*)(- ,-)(= ,=)(< ,<)(> ,>)(display ,(lambda (x)(display x)(newline)))) | |
p)) | |
(start m) | |
(display (get-register-contents m 'res))) |
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
defmodule Words do | |
def count(input) do | |
input |> String.downcase | |
|> (&Regex.scan(%r/\w+/, &1)).() | |
|> List.flatten | |
|> count_words | |
end | |
defp count_words(words) do | |
increment = &(&1 + 1) |
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
require 'formula' | |
class Webtoolkit < Formula | |
homepage 'http://webtoolkit.eu' | |
sha1 '0ae889c1411864d783962d4878b90efbce7f3382' | |
stable do | |
url 'http://downloads.sourceforge.net/project/witty/wt/3.3.1/wt-3.3.1.tar.gz' | |
end |
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
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix | |
index 19a5581..0a855bb 100644 | |
--- a/pkgs/development/haskell-modules/configuration-common.nix | |
+++ b/pkgs/development/haskell-modules/configuration-common.nix | |
@@ -206,7 +206,7 @@ self: super: { | |
# hfsevents needs CoreServices in scope | |
hfsevents = if pkgs.stdenv.isDarwin | |
- then with pkgs.darwin.apple_sdk.frameworks; addBuildTool (addBuildDepends super.hfsevents [Cocoa]) CoreServices | |
+ then with pkgs.darwin.apple_sdk.frameworks; addBuildTool (addBuildDepends super.hfsevents [super.cereal super.mtl super.text Cocoa]) CoreServices |
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
diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix | |
index de8865e..1a6644f 100644 | |
--- a/pkgs/development/haskell-modules/hackage-packages.nix | |
+++ b/pkgs/development/haskell-modules/hackage-packages.nix | |
@@ -118977,13 +118977,16 @@ self: { | |
}) {}; | |
"hfsevents" = callPackage | |
- ({ mkDerivation }: | |
+ ({ mkDerivation, cereal, mtl, text }: |
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
nix-repl> :b darwin.osx_private_sdk | |
warning: you did not specify ‘--add-root’; the result might be removed by the garbage collector | |
/nix/store/5hy0n3h1h0y2rpdcc33vcpi5972l4ml5-OSXPrivateSDK-f4d52b6 | |
this derivation produced the following outputs: | |
out -> /nix/store/5hy0n3h1h0y2rpdcc33vcpi5972l4ml5-OSXPrivateSDK-f4d52b6 |
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
Updating registry `https://github.com/rust-lang/crates.io-index` | |
SYSCALL(args) = return | |
thread_selfid(0x0, 0x0, 0x0) = 8216191 0 | |
csops(0x0, 0x0, 0x7FFF565E0890) = 0 0 | |
issetugid(0x0, 0x0, 0x7FFF565E0890) = 0 0 | |
shared_region_check_np(0x7FFF565DE798, 0x0, 0x7FFF565E0890) = 0 0 | |
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF565DFD28, 0x7FFF565E0890) = 0 0 | |
open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0 | |
pread(0x3, "\312\376\272\276\0", 0x1000, 0x0) = 4096 0 | |
pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x1000) = 4096 0 |
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
test [run-make] run-make/version ... ok | |
test [run-make] run-make/volatile-intrinsics ... ok | |
test [run-make] run-make/weird-output-filenames ... ok | |
test [run-make] run-make/unicode-input ... ok | |
failures: | |
---- [run-make] run-make/linker-output-non-utf8 stdout ---- | |
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
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs.lib; | |
evalModules { | |
modules = [ | |
({ config, ... }: | |
{ | |
options = { |