Skip to content

Instantly share code, notes, and snippets.

View rbren's full-sized avatar
🐢
I may be slow to respond.

Robert Brennan rbren

🐢
I may be slow to respond.
  • Fairwinds
  • Boston, Massachusetts
View GitHub Profile
var tick = "`"
var code =
`
console.log('var tick = "' + tick + '"');
console.log('var code = ');
console.log(tick);
console.log(code.trim());
console.log(tick);
console.log(code.trim());
`
@rbren
rbren / README.md
Last active July 1, 2021 22:09
Sync GitHub issues to spreadsheet

DataFire Dataflow: Sync GitHub issues to spreadsheet

Deprecated - DataFire is now out of beta. You can use the new version of this project on DataFire.io, or view it on GitHub

Pulls all new issues from a GitHub repo into a spreadsheet

View on DataFire

[metadata]: ./ '{"links":[{"connection":"563b9b84ea9ad5f345e97505","operation":{"method":"get","path":"/repos/{ownerId}/{repoId}/issues"}},{"connection":"563b9b85ea9ad5f345e97511","operation":{"method":"get","path":"/list/{key}/{worksheetId}/{visibility}/{projection}"}},{"connection":"563b9b85ea9ad5f345e97511","operation":{"method":"put","path":"/cells/{key}/{worksheetId}/{visibility}/{projection}/{cellId}"}},{"connection":"563b9b85ea9ad5f345e97511","operation":{"method":"post","path":"/list/{key}/{worksheetId}/{visibility}/{pro

This file has been truncated, but you can view the full file.
{
"kind": "NodeList",
"apiVersion": "v1",
"metadata": {
"selfLink": "/api/v1/nodes",
"resourceVersion": "9103"
},
"items": [
{
"metadata": {
@rbren
rbren / README.md
Created January 25, 2016 23:36
Sync GitHub Issues to Trello

DataFire Daemon: Sync GitHub Issues to Trello

Create a Trello list for every Milestone, and a card for every Issue

View on DataFire

[metadata]: ./ '{"links":[{"connection":"564cb90e2a034b0e0f1255fe","operation":{"method":"get","path":"/members/{idMember}/boards"}},{"connection":"563b9b84ea9ad5f345e97505","operation":{"method":"get","path":"/repos/{ownerId}/{repoId}/issues"}},{"connection":"564cb90e2a034b0e0f1255fe","operation":{"method":"get","path":"/boards/{idBoard}/cards"}},{"connection":"564cb90e2a034b0e0f1255fe","operation":{"method":"get","path":"/boards/{idBoard}/lists"}},{"connection":"563b9b84ea9ad5f345e97505","operation":{"method":"get","path":"/repos/{ownerId}/{repoId}/milestones"}},{"connection":"564cb90e2a034b0e0f1255fe","operation":{"method":"post","path":"/lists"}},{"connection":"564cb90e2a034b0e0f1255fe","operation":{"method":"post","path":"/cards"}},{"connection":"564cb90e2a034b0e0f1255fe","operation":{"method":"put","path":"/cards/{i

let app = require('express')();
app.use(require('body-parser').urlencoded());
const CONTACT_ADDRESS = 'me@company.com';
var mailer = require('nodemailer').createTransport({
service: 'Gmail',
auth: {
user: process.env.GMAIL_ADDRESS,
pass: process.env.GMAIL_PASSWORD,
let itemIDs = [1, 2, 3, 4, 5];
itemIDs.reduce((promise, itemID) => {
return promise.then(_ => api.deleteItem(itemID));
}, Promise.resolve());
@rbren
rbren / index.html
Last active October 26, 2018 20:09
OneDB simple example
<html>
<head>
<script src="https://unpkg.com/onedb-client/dist/onedb-client.min.js"></script>
<script>
var onedb = new OneDBClient({
hosts: {
primary: {location: 'https://one-db.datafire.io'},
}
});
</script>
service: serverless-contact
provider:
name: aws
runtime: nodejs6.10
functions:
contact:
handler: handler.contact
events:
function timeout(ms) {
return new Promise((resolve, reject) => {
setTimeout(reject, ms);
})
}
Promise.race([readFilePromise('index.html'), timeout(1000)])
.then(data => console.log(data))
.catch(e => console.log("Timed out after 1 second"))
Verifying my Blockstack ID is secured with the address 1KmvT1LfgXLPcRSbhFnJzXcwtAwVc7QK5S https://explorer.blockstack.org/address/1KmvT1LfgXLPcRSbhFnJzXcwtAwVc7QK5S