added nix flakes
This commit is contained in:
1 parent
8d9b66ea2e
commit
bbaded625d
8 files changed
+111
-27
No files matched your search
@@ -1 +1,2 @@
|
||||
.idea
|
||||
.direnv
|
||||
@@ -0,0 +1,4 @@
|
||||
# Project attached to cours-420-301-ah
|
||||
|
||||
All the public classes can be accessed via `` and documentation is
|
||||
available at https://didiercrunch.github.io/cours-420-301-ah/.
|
||||
@@ -33,15 +33,7 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="./">books.js</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="./">hockey.js</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="./">stats.js</a>
|
||||
<a href="./"></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -56,23 +48,7 @@
|
||||
|
||||
|
||||
<section>
|
||||
<h2>Module<pre>books.js</pre></h2>
|
||||
<div class="markdown"></div>
|
||||
</section>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<section>
|
||||
<h2>Module<pre>hockey.js</pre></h2>
|
||||
<div class="markdown"></div>
|
||||
</section>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<section>
|
||||
<h2>Module<pre>stats.js</pre></h2>
|
||||
<h2>Module<pre></pre></h2>
|
||||
<div class="markdown"></div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
(function () {
|
||||
window.DENO_DOC_SEARCH_INDEX = {"nodes":[{"kind":"function","name":"isValidIsbn13","nsQualifiers":"","location":{"filename":"books.js","line":8,"col":0},"declarationKind":"export"},{"kind":"function","name":"isValidIsbn10","nsQualifiers":"","location":{"filename":"books.js","line":36,"col":0},"declarationKind":"export"},{"kind":"function","name":"isValidIsbn","nsQualifiers":"","location":{"filename":"books.js","line":65,"col":0},"declarationKind":"export"},{"kind":"class","name":"HockeyGame","nsQualifiers":"","location":{"filename":"hockey.js","line":6,"col":0},"declarationKind":"export"},{"kind":"variable","name":"INFINITY","nsQualifiers":"","location":{"filename":"stats.js","line":5,"col":13},"declarationKind":"export"},{"kind":"function","name":"average","nsQualifiers":"","location":{"filename":"stats.js","line":13,"col":0},"declarationKind":"export"},{"kind":"function","name":"std","nsQualifiers":"","location":{"filename":"stats.js","line":33,"col":0},"declarationKind":"export"}]};
|
||||
window.DENO_DOC_SEARCH_INDEX = {"nodes":[{"kind":"class","name":"HockeyGame","nsQualifiers":"","location":{"filename":"/home/didier/ahuntsic/src-420-301-ah/modules-examples/hockey.js","line":6,"col":0},"declarationKind":"export"},{"kind":"function","name":"isValidIsbn13","nsQualifiers":"","location":{"filename":"/home/didier/ahuntsic/src-420-301-ah/modules-examples/books.js","line":8,"col":0},"declarationKind":"export"},{"kind":"function","name":"isValidIsbn10","nsQualifiers":"","location":{"filename":"/home/didier/ahuntsic/src-420-301-ah/modules-examples/books.js","line":36,"col":0},"declarationKind":"export"},{"kind":"function","name":"isValidIsbn","nsQualifiers":"","location":{"filename":"/home/didier/ahuntsic/src-420-301-ah/modules-examples/books.js","line":65,"col":0},"declarationKind":"export"},{"kind":"variable","name":"INFINITY","nsQualifiers":"","location":{"filename":"/home/didier/ahuntsic/src-420-301-ah/modules-examples/stats.js","line":5,"col":13},"declarationKind":"export"},{"kind":"function","name":"average","nsQualifiers":"","location":{"filename":"/home/didier/ahuntsic/src-420-301-ah/modules-examples/stats.js","line":13,"col":0},"declarationKind":"export"},{"kind":"function","name":"std","nsQualifiers":"","location":{"filename":"/home/didier/ahuntsic/src-420-301-ah/modules-examples/stats.js","line":33,"col":0},"declarationKind":"export"}]};
|
||||
})()
|
||||
Generated
+61
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1701680307,
|
||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1701436327,
|
||||
"narHash": "sha256-tRHbnoNI8SIM5O5xuxOmtSLnswEByzmnQcGGyNRjxsE=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "91050ea1e57e50388fa87a3302ba12d188ef723a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
description = "The 420-320-AH course";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
git-hash = if (self ? rev) then builtins.substring 0 8 self.rev else "dirty";
|
||||
last-updated = if (self ? lastModified) then builtins.toString self.lastModified else "0";
|
||||
|
||||
|
||||
python = pkgs.python3.withPackages(ps: with ps; [numpy
|
||||
pandas
|
||||
requests
|
||||
ipdb
|
||||
matplotlib
|
||||
duckdb
|
||||
pyarrow
|
||||
jupyter
|
||||
pytest
|
||||
faker]);
|
||||
in
|
||||
{
|
||||
packages = {};
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [deno
|
||||
python];
|
||||
shellHook = ''
|
||||
alias build-docs=${pkgs.deno}/bin/deno doc --html --name="Programmation Client II" --output=./docs/ ./modules-examples/mod.js
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from "./hockey.js"
|
||||
export * from "./books.js"
|
||||
export * from "./stats.js"
|
||||
Reference in new issue
Block a user