react + redux + RR
It uses https://gist.github.com/iNikNik/3c1b870f63dc0de67c38 for stores and actions.
1) create redux
const redux = createRedux(state);2) get requireAccess func => bindCheckAuth to redux
| code;name | |
| 01;Personal Care Activities | |
| 0101;Sleeping | |
| 0102;Grooming | |
| 0103;Health-related self care | |
| 0104;Personal Activities | |
| 0105;Personal Care Emergencies | |
| 0199;Personal care, n.e.c.* | |
| 02;Household Activities | |
| 0201;Housework |
react + redux + RR
It uses https://gist.github.com/iNikNik/3c1b870f63dc0de67c38 for stores and actions.
1) create redux
const redux = createRedux(state);2) get requireAccess func => bindCheckAuth to redux
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| #! /usr/bin/env bash | |
| # Insert a USB key. | |
| # if needed initialize it with MS/DOS FAT and MBR | |
| # Download the Mint ISO image | |
| # Convert the ISO -> IMG | |
| hdiutil convert -format UDRW -o linuxmint-17.3-cinnamon-64bit linuxmint-17.3-cinnamon-64bit.iso | |
| # Run a diskutil list to know the device for the USB key, e.g.: /dev/disk3 |
| require "active_record" | |
| namespace :db do | |
| db_config = YAML::load(File.open('config/database.yml')) | |
| db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
| desc "Create the database" | |
| task :create do | |
| ActiveRecord::Base.establish_connection(db_config_admin) |
Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.
This is part of a blog post Serverless Kubernetes home-lab with your Raspberry Pis written by Alex Ellis.
Copyright disclaimer: Please provide a link to the post and give attribution to the author if you plan to use this content in your own materials.
| CREATE EXTENSION IF NOT EXISTS "unaccent"; | |
| CREATE OR REPLACE FUNCTION slugify("value" TEXT) | |
| RETURNS TEXT AS $$ | |
| -- removes accents (diacritic signs) from a given string -- | |
| WITH "unaccented" AS ( | |
| SELECT unaccent("value") AS "value" | |
| ), | |
| -- lowercases the string | |
| "lowercase" AS ( |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| version: "3.4" | |
| x-defaults: &defaults | |
| image: "dask-dev/dask-notebook" | |
| # With lists, each entry requires its own anchor if you | |
| # intend to extend/reuse an entry in concrete services. | |
| configs: | |
| - &configs_condarc | |
| source: "condarc" |