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
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
| The MIT License (MIT) | |
| Copyright (c) 2014 Tomas Kafka | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| <!DOCTYPE html> | |
| <head> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> | |
| </script> | |
| </head> | |
| Hola | |
| <script> | |
| // using jQuery | |
| function getCookie(name) { | |
| var cookieValue = null; |
| var http = require('http'), | |
| url = require('url'), | |
| exec = require('child_process').exec; | |
| var locked = false; | |
| var app = http.createServer(function(request, response) { | |
| var url_parts = url.parse(request.url, true); | |
| var path = url_parts.pathname.replace(/^\/|\/$/g, ''); |
| var sync = require('child_process').spawnSync; | |
| console.log('start ls'); | |
| var ls = sync('ls', ['-lh', '/usr']); | |
| console.log('end ls'); | |
| console.log('start grep'); | |
| var grep = sync('grep', ['local'], { | |
| input: ls.stdout | |
| }) |
#The power of z
Do you spend lots of time doing things like this?
cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwantWith z, you could just do this:
| #!/bin/bash | |
| mkdir -p ~/.ssh | |
| # generate new personal ed25519 ssh keys | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>" | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>" | |
| # generate new host cert authority (host_ca) ed25519 ssh key | |
| # used for signing host keys and creating host certs |
| /* | |
| auth: mmasnion | |
| desc: get zero-padded string for numbers under 50,000 | |
| */ | |
| int testNumber = 70; | |
| void setup() { | |
| Serial.begin(9600); | |
| } |