Skip to content

Instantly share code, notes, and snippets.

@danielrob
danielrob / original_project_error.txt
Last active June 14, 2020 01:22
posthtml-expressions error logs
project/src/index.html: input.match is not a function
[1] at placeholders (project/node_modules/posthtml-expressions/lib/placeholders.js:42:27)
[1] at concat.reduce (project/node_modules/posthtml-expressions/lib/index.js:195:27)
[1] at Array.reduce (<anonymous>)
[1] at walk (project/node_modules/posthtml-expressions/lib/index.js:167:27)
[1] at concat.reduce (project/node_modules/posthtml-expressions/lib/index.js:204:22)
[1] at Array.reduce (<anonymous>)
[1] at walk (project/node_modules/posthtml-expressions/lib/index.js:167:27)
[1] at concat.reduce (project/node_modules/posthtml-expressions/lib/index.js:204:22)
[1] at Array.reduce (<anonymous>)
import { toPath } from "lodash";
import { is, path, assocPath, always } from "ramda";
import React, { useContext } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Context, ReduxInputContext } from "./ReduxInputContext";
/**
* ReduxInput connects any standard input component to the redux store where a
* "standard input component" is any component accepting e.g. value and onChange props.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@danielrob
danielrob / SimpleForm.js
Created July 27, 2017 22:24
FieldArray with radio buttons dependent extras
import React from 'react';
import { connect } from 'react-redux'
import { Field, reduxForm, FieldArray, formValueSelector } from 'redux-form';
const Animal = ({ name, isSelected }) => (
<span>
<Field
name={`${name}.name`}
type="text"
@danielrob
danielrob / img-load-play
Created May 24, 2016 17:49
img-load-play
<style>
/*#preload img {
width: 1px;
height: 1px;
opacity: 0.01;
}*/
</style>
<button>Toggle Image</button>
@danielrob
danielrob / configure_LiveReload
Last active August 29, 2015 14:19
Quick Start with Grunt LiveReload
THIS IS A Command run-through to get a browser to automatically update when there are changes to a project file.
# Reference Reading: http://gruntjs.com/getting-started#preparing-a-new-grunt-project
# https://github.com/gruntjs/grunt-contrib-watch/issues/75
$ node -v
# success? continue : install node https://nodejs.org/ || $ nodenv versions ; $ nodenv global <version> (Boxen case)
$ npm -v
# success? continue : erm... ?
$ npm install -g grunt-cli
# That's the global stuff done. Now per project: