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
| { | |
| 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 = import nixpkgs { |
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
| { | |
| 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 = import nixpkgs { |
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
| # configuration.nix | |
| # Build with: nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=./configuration.nix --show-trace | |
| # Run with: ./result/bin/run-nixos-flatpak-demo-vm | |
| # Login as user `demo` password `demo` | |
| # Verify that the desired flatpaks have been installed. | |
| # | |
| let | |
| # External let binding to fetch nix-flatpak without | |
| # causing infinite recursion. | |
| pkgs = import <nixpkgs> {}; |
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
| { | |
| # Based on https://ryantm.github.io/nixpkgs/languages-frameworks/python/#python | |
| # (modified). | |
| description = "Nix Development Flake for python legacy projects"; | |
| inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; | |
| outputs = | |
| { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem |
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
| traceroute to hachyderm.io (139.162.143.203), 64 hops max, 52 byte packets | |
| 1 192.168.1.1 (192.168.1.1) 2.378 ms 1.892 ms 5.331 ms | |
| 2 195-190-228-43.fixed.kpn.net (195.190.228.43) 12.863 ms 19.281 ms 6.019 ms | |
| 3 * * * | |
| 4 * * * | |
| 5 ae-0.akamai.amstnl09.nl.bb.gin.ntt.net (168.143.105.181) 3.337 ms 16.023 ms 25.189 ms | |
| 6 ae12.r02.ams01.icn.netarch.akamai.com (23.197.69.40) 6.072 ms 3.463 ms 4.142 ms | |
| 7 ae5.r01.fra03.icn.netarch.akamai.com (95.100.192.138) 12.224 ms 31.355 ms 10.561 ms | |
| 8 ae1.r02.fra03.ien.netarch.akamai.com (23.210.54.37) 13.545 ms 14.298 ms 13.710 ms | |
| 9 a23-210-54-19.deploy.static.akamaitechnologies.com (23.210.54.19) 10.493 ms 10.410 ms 10.357 ms |
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
| # this installs the stand compiler and R bindings | |
| install.packages("rstan") | |
| library(rstan) | |
| # Generate sample data | |
| x1 <- rnorm(41, mean=15, sd=1.5) | |
| x2 <- rnorm(79, mean=17, sd=1.1) | |
| x <- c(x1, x2) |
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
| name: pysyft | |
| channels: | |
| - defaults | |
| dependencies: | |
| - ca-certificates=2021.4.13=hecd8cb5_1 | |
| - certifi=2020.12.5=py36hecd8cb5_0 | |
| - libcxx=10.0.0=1 | |
| - libffi=3.3=hb1e8313_2 | |
| - ncurses=6.2=h0a44026_1 | |
| - openssl=1.1.1k=h9ed2024_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
| // Update of https://github.com/learninghadoop2/book-examples/blob/master/ch2/build.gradle | |
| // Default to HTTPs maven central to fix broken dependencies. | |
| apply plugin:'java' | |
| sourceCompatibility = 1.8 | |
| targetCompatibility = 1.8 | |
| repositories{ | |
| maven { | |
| url = 'https://repo1.maven.org/maven2/' | |
| } |
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
| // Update of https://github.com/learninghadoop2/book-examples/blob/master/ch3/build.gradle | |
| // Drop Cloudera versions of Hadoop packages, and use vanilla versions instead. | |
| apply plugin:'java' | |
| sourceCompatibility = 1.8 | |
| targetCompatibility = 1.8 | |
| // Use maven central (over https) instead of Cloudera repos | |
| repositories { | |
| maven { | |
| url = 'https://repo1.maven.org/maven2/' |
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
| def to_binary(string: str): | |
| string = ( | |
| string.replace("B", "1").replace("F", "0").replace("R", "1").replace("L", "0") | |
| ) | |
| return int(string, base=2) | |
| def part1(strings): | |
| return max([to_binary(string) for string in strings]) |
NewerOlder