wget -O - http://www.undervineyard.com/ubuntu-SSR-install.sh | bash -
wget -O - http://www.undervineyard.com/ubuntu-SSR-install.sh | bash -s -- port password
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
module.exports = { | |
module: { | |
rules: [ | |
{ | |
test: /\.(js|jsx)$/, | |
exclude: /node_modules/, | |
use: { | |
loader: "babel-loader", | |
options: { | |
"presets": ["@babel/preset-env", "@babel/preset-react"], |
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
import React, { Component, useState } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import {Provider, connect} from 'react-redux' | |
import {createStore, combineReducers} from 'redux'; | |
// action type | |
const ADD_LIST = "add_list"; | |
const REMOVE_ITEM = "remove_item"; |
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
import { createStore } from 'redux' | |
/** | |
* This is a reducer, a pure function with (state, action) => state signature. | |
* It describes how an action transforms the state into the next state. | |
* | |
* The shape of the state is up to you: it can be a primitive, an array, an object, | |
* or even an Immutable.js data structure. The only important part is that you should | |
* not mutate the state object, but return a new object if the state changes. | |
* | |
* In this example, we use a `switch` statement and strings, but you can use a helper that |
python mujson_mgr.py -l | sort -nk 4 | cut -d' ' -f4 | xargs -n 1 -I {} python3 mujson_mgr.py -l -p {}