var scriptSrc='//cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js';
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'script.js';
script.src = scriptSrc;
document.head.appendChild(script);
If you are seeing Mongo soft rlimits warnings in your logs, or a WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
when you login to mongo shell via mongo
from the commandline, or any mysterious/unexplained mongo connection errors... follow this how-to exactly and it will resolve the issue for you.
(Source of this how to found at basho/basho_docs#1402)
First file:
sudo vi /Library/LaunchDaemons/limit.maxfiles.plist
...containing:
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
/* | |
* The reason for this is just a thought exercise | |
* often people(myself super included) are so confused | |
* when trying something new, but breaking it down | |
* to it's simplest existence can be the best way to understand | |
*/ | |
function createStore(reducer, initState) { | |
let state = initState; | |
let subscribers = []; |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<!-- adapted from: https://github.com/pedropaulovc/aws-flow-maven-eclipse-samples | |
then upgraded to 1.9.27 and java 1.8 following http://stackoverflow.com/a/28843218/4094090 --> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.amazonaws.services.simpleworkflow.flow</groupId> | |
<artifactId>startstop</artifactId> | |
<version>1.8.4</version> |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
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
For those of you asking about my "redux mental breakthrough":
I've struggled with how to keep the state of multiple instances of the same component class in redux. I kept thinking that I had an "unkown number" of instances and would need to somehow carve out a piece of state when the new instance was mounted.
I don't know why I was thinking this way. Thinking is hard, isn't it? (I'm in the UK and they often say "isn't it?" after asserting something and I love it, anyway....)
This is a proof of concept which allows you to replay system events in a random order each time to make sure your UI can tolerate variable states.
I'm not sure if this is worthy of its on open source project with additional features like changing play back time, whitelisting/blacklisting actions etc but figured I'd put this out there to see if it piques anyones interest.
See a video of this in action here: [https://www.youtube.com/watch?v=wkoukONfwmA](Video on YouTube).