I hereby claim:
- I am chadfawcett on github.
- I am chadfawcett (https://keybase.io/chadfawcett) on keybase.
- I have a public key ASC3bDub2bwhoAMmpGxlLvzFtqp6GKmBJbckpqR7UhSWnQo
To claim this, I am signing this object:
#!/bin/bash | |
# script/weekly-standup.sh | |
# The `date` command on MacOS doesn't include the `--date` parameter, so we pass in the generated title for ease of testing | |
TITLE="$1" | |
# Funkyness to read in our multi-line markdown as a variable to pass to GraphQL | |
read -r -d '' BODY << EOM | |
### Instructions | |
- Example instructions |
if (window.location.contains('bacon')) { | |
console.log('🥓') | |
} |
// now.json | |
{ | |
"version": 2, | |
"env": { | |
"APP_ID": "@app-id", | |
"WEBHOOK_SECRET": "@webhook-secret", | |
"PRIVATE_KEY": "@private-key-base64-encoded" | |
}, | |
"builds": [{ "src": "now.js", "use": "@now/node" }], | |
"routes": [{ "src": "/", "dest": "/now.js" }] |
// now.js | |
var { serverless } = require('@chadfawcett/probot-serverless-now') | |
const appFn = require('./app') | |
module.exports = serverless(appFn) |
// Simplified for clarity | |
const { createProbot } = require('probot') | |
const app = require('../') | |
const probot = createProbot({ | |
id: process.env.APP_ID, | |
secret: process.env.WEBHOOK_SECRET, | |
cert: process.env.PRIVATE_KEY | |
}) |
I hereby claim:
To claim this, I am signing this object:
import serial | |
from time import sleep | |
#Play around with timeout to see if I can improve refresh rate | |
ser = serial.Serial("/dev/tty.usbserial", 38400, timeout=0.1) | |
for x in range(0, 100): | |
ser.write("01 0C\r") | |
sleep(0.05) | |
rpm_hex = ser.readline().split(' ') #Try other read methods to increase speed |