Skip to content

Instantly share code, notes, and snippets.

View glennblock's full-sized avatar

Glenn Block glennblock

View GitHub Profile

Keybase proof

I hereby claim:

  • I am glennblock on github.
  • I am gblock72 (https://keybase.io/gblock72) on keybase.
  • I have a public key ASCg2xsMsnnXRJ2zNTuVVlI5HV7uC2dr8A_p_Dk7HS4FZAo

To claim this, I am signing this object:

@glennblock
glennblock / books.json
Created September 7, 2020 15:50 — forked from nanotaboada/books.json
A sample collection of books in JSON format
{
"books": [
{
"isbn": "9781593275846",
"title": "Eloquent JavaScript, Second Edition",
"subtitle": "A Modern Introduction to Programming",
"author": "Marijn Haverbeke",
"published": "2014-12-14T00:00:00.000Z",
"publisher": "No Starch Press",
"pages": 472,
@glennblock
glennblock / Jobs.md
Last active April 27, 2020 05:47
Job search resources for women in Washington

Health Insurance

The first concern I had when leaving my work was health insurance. Online resources are not very clear, but of course my first stop was checking out the Healthcare marketplace and figure out my insurance budget. Then I found out here in WA there are insurance brokers (paid by the state) that can guide you through the best options. When I spoke with an insurance broker they gave me quotes for 2-3 providers, but also mentioned Apple Health, which is free insurance provided by the state. Apple Health is based on current income (and savings, like in my case, do not count as income), so if one makes under a certain amount of money they are eligible for this free insurance, which includes health, dental, and vision.

Right now, online resources outside of LinkedIn are very important. I find LinkedIn to be good for general networking or looking for job postings, but as a woman I have seen too many misogynistic

var logger = require('@iopipe/logger');
var iopipe = require('@iopipe/iopipe')(
{
token: module.webtask.secrets.iopipe,
plugins: [logger({ enabled: true })]
}
);
var handler = iopipe(
(event, context, callback) => {
execute(event, context, callback);
@glennblock
glennblock / stripe.js
Created July 31, 2018 20:17
Stripe task
'use latest';
import express from 'express';
import { fromExpress } from 'webtask-tools';
import bodyParser from 'body-parser';
import stripe from 'stripe';
var app = express();
app.use(bodyParser.urlencoded({ extended: true }));
https://auth0.zoom.us/j/349432168
'use latest';
import express from 'express';
import { fromExpress } from 'webtask-tools';
import bodyParser from 'body-parser';
import stripe from 'stripe';
var app = express();
app.use(bodyParser.urlencoded({ extended: true }));
var express = require('express');
var Webtask = require('webtask-tools');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
module.exports = Webtask.fromExpress(app);
app.get('/helloworld.html', function(req, res) {
var fs = require('fs'), _ = require('underscore');
var source = './Dropbox/Camera Uploads/';
var dest = './picframe/';
var size = 1000;
var files = fs.readdirSync(source);
var sample = _.sample(files, size);
for(i=0;i<size;i++) {
console.log("Copying file: " + (i+1));
fs.copyFileSync(source + sample[i], dest + sample[i]);
}
module.exports = createZeroCRMMiddleware;
function createZeroCRMMiddleware() {
return (req, res, next)=> {
const ctx = req.webtaskContext;
const compiler = ctx.compiler;
return compiler.nodejsCompiler(compiler.script, (error, webtaskFn) => {
if (error) return next(error);