(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} -s [OR] | |
| RewriteCond %{REQUEST_FILENAME} -l [OR] | |
| RewriteCond %{REQUEST_FILENAME} -d | |
| RewriteRule ^.*$ - [NC,L] | |
| RewriteRule ^(.*) /app/index.html [NC,L] | |
| </IfModule> | 
| function processInboxToSheet() { | |
| //var threads = GmailApp.getInboxThreads(); | |
| // Have to get data separate to avoid google app script limit! | |
| var start = 0; | |
| var threads = GmailApp.getInboxThreads(start, 100); | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var result = []; | |
| for (var i = 0; i < threads.length; i++) { | |
| var messages = threads[i].getMessages(); | 
| # create a new user (john for this example) | |
| # just enter a password when asked, confirm it, and the other steps are optionals | |
| sudo adduser john | |
| # give root user the ownership of john's home directory | |
| sudo chown root:root /home/john | |
| # edit the ssh configuration file | |
| sudo vim /etc/ssh/sshd_config | 
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
The best resource for learning Google Script is the official documentation available at developers.google.com. Here are other places that will help you get up to speed.
| /* | |
| Copyright 2011 Martin Hawksey | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | 
| const composedCreateStore = compose( | |
| applyMiddleware( | |
| thunkMiddleware, | |
| dispatchIdMiddleware, | |
| webWorkerMiddleware('/build/worker.js'), | |
| () => promiseMiddleware, | |
| loggerMiddleware | |
| ), | |
| createStore | |
| ); |