brew install minikube
brew install hyperkit
minikube config set driver hyperkit
minikube start --memory 8192 --cpus 5 --disk-size=80GB
brew install docker
# point docker to the minikube env
eval $(minikube -p minikube docker-env)
# validate setup
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
| #!/bin/bash | |
| echo "Enter the open dir URL: " | |
| read url | |
| echo "Please select:" | |
| showMenu () { | |
| echo "1) Download entire contents." | |
| echo "2) Create an index of content only." | |
| echo "3) Cancel/Quit" | |
| } | |
| while [ 1 ] |
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
| - Haskell Mergesort | |
| - Copyright (C) 2014 by Kendall Stewart | |
| First we define a couple of helper functions that | |
| will be useful in splitting the list in half: | |
| > fsthalf :: [a] -> [a] | |
| > fsthalf xs = take (length xs `div` 2) xs |
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
| /** | |
| * A type-safe high-order-component creator | |
| * that injects a prop named a given string, | |
| * with a type inferred by a given hook's | |
| * return value. | |
| * | |
| * Ex: | |
| * const Component = ({ name }) => { | |
| * return <>Hello {name}</>; | |
| * }; |
The plan is to take a simple nodejs server. and add to it simple file serving capabilities. also to have a custom responce to a certien url. to be able to make a simple api in addition of serving files.
goals:
- to learn read the documentation
- to understand the whole concept
- to use some api for hands on expirience
- streach goal: learn basic npm usage.
This is an example of a function whose logic lives in the type definition rather than in the function body.
/**
* @name `curryRecord`
*
* Takes a unary function that takes a record as an argument, and makes the
* record partially applicable. Returns a new function that takes a partial of
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
| defmodule Decode do | |
| @moduledoc """ | |
| Extracted from https://github.com/ewildgoose/elixir-float_pp | |
| """ | |
| use Bitwise | |
| @float_bias 1022 | |
| ############################################################################ |
- To provide resources for library and framework authors to ensure that BEAM languages have a rich, vibrant ecosystem with a high degree of developer experience. Main Objectives
- Provide and maintain best practices on library and framework standardization, documentation, code, and distribution. Collaborate to work on and make proposals for underlying tooling that improve the experience for library/framework authors and users.
- Provide more visibility into the library ecosystem of Elixir on behalf of both authors and users.
- (if Build and Packaging want to move this here, we could also take this over) Improve the user experience in generating and accessing documentation from the shell, IDEs, web pages, and more.
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
| #################################### | |
| # Environment setup for Nix shells # | |
| #################################### | |
| # From https://github.com/direnv/direnv/wiki/Nix#persistent-cached-shell | |
| # | |
| # Usage: use_nix [...] | |
| # | |
| # Load environment variables from `nix-shell`. | |
| # If you have a `default.nix` or `shell.nix` one of these will be used and |
OlderNewer