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
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
| { | |
| "Version": "2008-10-17", | |
| "Id": "0c762de8-f56b-488d-a4a4-20d1cb31df2f", | |
| "Statement": [ | |
| { | |
| "Sid": "Allow in my domains", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": "*" | |
| }, |
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
| We’ve built a new communication protocol that sends messages with a restricted syntax. | |
| We need to write a function which determines whether a given message is syntactically valid or not. | |
| Here are the rules: | |
| 1. There are 15 valid characters in the protocol: the lower-case characters ‘a’ through ‘j’ | |
| and the uppercase characters ‘Z’, ‘M’, ‘K’, ‘P’, and ‘Q’. | |
| 2. Every lower-case character in isolation is a valid message, e.g., ‘a’ is a valid message. | |
| 3. If σ is a valid message then so is Zσ. | |
| 4. If σ and τ are valid messages then so are Mστ , Kστ , Pστ , and Qστ . | |
| 5. All other messages are invalid. |
| var object = { | |
| handler : function(){ | |
| $("selector").on( "click", _.bind( this.doSomething, this )); | |
| }, | |
| doSomething : function(e){ |