- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Recipe Dashboard</title> | |
<script src="https://use.fontawesome.com/99d8f1b106.js"></script> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet"> | |
</head> | |
<body class="dqpl-no-sidebar"> | |
<div id="app"> | |
<div class="App"> |
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
version: '3.3' | |
services: | |
db: | |
image: mysql:5.6 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
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
// XORCipher - Super simple encryption using XOR and Base64 | |
// | |
// Depends on [Underscore](http://underscorejs.org/). | |
// | |
// As a warning, this is **not** a secure encryption algorythm. It uses a very | |
// simplistic keystore and will be easy to crack. | |
// | |
// The Base64 algorythm is a modification of the one used in phpjs.org | |
// * http://phpjs.org/functions/base64_encode/ | |
// * http://phpjs.org/functions/base64_decode/ |
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
// package.json | |
{ | |
"scripts": { | |
"start": "neutrino start", | |
"build": "neutrino build" | |
}, | |
"neutrino": { | |
"use": [ | |
"neutrino-preset-elm" | |
] |
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
// elm-package.json | |
{ | |
"source-directories": [ | |
"src" | |
] | |
} |
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
// src/index.js | |
const Elm = require('./Main.elm'); | |
const mountNode = document.getElementById('root'); | |
const app = Elm.Main.embed(mountNode); |
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
❯ mkdir src && touch src/index.js | |
❯ npm init | |
❯ npm install --save-dev neutrino neutrino-preset-elm |
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
# spec/support/capybara.rb | |
require 'capybara/rails' | |
require 'capybara/rspec' | |
# port and url to webpack server | |
WEB_TEST_PORT = '5005'.freeze | |
WEB_TEST_URL = "http://localhost:#{WEB_TEST_PORT}".freeze | |
def capybara_wait_for_webpack_server | |
10.times.each do |_| |
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
// @flow | |
import { flow } from 'lodash'; | |
import { fromJS, Map } from 'immutable'; | |
import type { User, ValidationErrors, WidgetAction } from 'pivot/types'; | |
import * as t from './types'; | |
import * as actions from './actions'; | |
const EMPTY_ERRORS = new Map(); |
NewerOlder