View install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sSL https://static-sdk.redsift.io/install | bash |
View create
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redsift create counter |
View how-to-mail-filtering-1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const others = json.filter(j => j.user !== j['from'].email); |
View how-to-mail-filtering-2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
others.map(value => { | |
let text = value.textBody || value.strippedHtmlBody || ''; | |
return text; | |
}); |
View frontend-structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- package.json | |
- gulpfile.js | |
- bundle.config.js | |
- src/ | |
- scripts | |
- controller.js | |
- email-client-controller.js | |
- view.js | |
- styles | |
- *.css / *.styl |
View how-to-controller-1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for more info: https://docs.redsift.com/docs/client-code-siftcontroller | |
loadView(state) { | |
console.log('counter: loadView', state); | |
// ... | |
switch (state.type) { | |
// ... | |
case 'summary': | |
return { | |
html: 'summary.html', | |
data: {} //this.getX() |
View how-to-dag-nodes-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"nodes":[{ | |
"#": "First Node", | |
"input": { | |
"bucket": "gmailEmails" | |
}, | |
"implementation": { | |
"javascript": "server/node1.js" | |
}, | |
"outputs": { | |
"output1": {} |
View how-to-dag-outputs-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"outputs":{ | |
"exports":{ | |
"count" : { | |
"key$schema":"string" | |
} | |
} | |
} |
View how-to-dag-nodes-2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"nodes":[{ | |
"#": "First Node", | |
"input": { | |
"bucket": "gmailEmails" | |
}, | |
"implementation": { | |
"javascript": "server/node1.js" | |
}, | |
"outputs": { | |
"count": {} |
View how-to-node1-3a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return { | |
key: value.id, // instead of 'word_count' | |
value: count | |
} |
OlderNewer