Skip to content

Instantly share code, notes, and snippets.

View evanvin's full-sized avatar
:shipit:

Evan Vinciguerra evanvin

:shipit:
View GitHub Profile
This file has been truncated, but you can view the full file.
(function (f) { if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f() } else if (typeof define === "function" && define.amd) { define([], f) } else { var g; if (typeof window !== "undefined") { g = window } else if (typeof global !== "undefined") { g = global } else if (typeof self !== "undefined") { g = self } else { g = this } g.PDFDocument = f() } })(function () {
var define, module, exports; return (function () { function r(e, n, t) { function o(i, f) { if (!n[i]) { if (!e[i]) { var c = "function" == typeof require && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); var a = new Error("Cannot find module '" + i + "'"); throw a.code = "MODULE_NOT_FOUND", a } var p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { var n = e[i][1][r]; return o(n || r) }, p, p.exports, r, e, n, t) } return n[i].exports } for (var u = "function" == typeof require && require, i = 0; i < t.length; i++)o(t[i]); return o } return r })()({
This file has been truncated, but you can view the full file.
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.waffles = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const PDFDocument = require('pdfkit-table');
const fs = require('fs');
const { x, options } = require('pdfkit');
const FONT_SIZE = 10;
This file has been truncated, but you can view the full file.
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.module = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const PDFDocument = require('pdfkit-table');
const fs = require('fs');
const { x, options } = require('pdfkit');
const FONT_SIZE = 10;
This file has been truncated, but you can view the full file.
(function () { function r(e, n, t) { function o(i, f) { if (!n[i]) { if (!e[i]) { var c = "function" == typeof require && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); var a = new Error("Cannot find module '" + i + "'"); throw a.code = "MODULE_NOT_FOUND", a } var p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { var n = e[i][1][r]; return o(n || r) }, p, p.exports, r, e, n, t) } return n[i].exports } for (var u = "function" == typeof require && require, i = 0; i < t.length; i++)o(t[i]); return o } return r })()({
1: [function (require, module, exports) {
const PDFDocument = require('pdfkit-table');
const fs = require('fs');
const { x, options } = require('pdfkit');
const FONT_SIZE = 10;
const TOP_BOT_MARGINS = 16;
const LEFT_RIGHT_MARGINS = 24;
@evanvin
evanvin / api.yml
Created January 26, 2024 16:39
w api openapi schema
openapi: '3.0.0'
info:
version: '1.0.0'
title: 'Wordalike API'
description: Base wordalike endpoints
paths:
/words/:
get:
summary: Retrieves the two daily hydrated words
@evanvin
evanvin / git.md
Created August 1, 2023 13:54
Helping tips for getting used to the Github fork flow

In the following text, anything mentioned as upstream is the remote name I use for my non-fork git remote

Start

git checkout -b ‘newFeatureBranch’

# do work  

git add files
import requests, json
webhook = "https://hooks.slack.com/services/XXXX/XXXX/XXXX"
payload = {"text": "Anomaly detected!"}
requests.post(webhook, json.dumps(payload))

Keybase proof

I hereby claim:

  • I am evanvin on github.
  • I am evanvin (https://keybase.io/evanvin) on keybase.
  • I have a public key ASBgQn3vpIKvIjtLF7JHsC0s1KLgeaqA09jGYJ6eF-Rftgo

To claim this, I am signing this object:

@evanvin
evanvin / cloudspeech_demo.py
Last active July 28, 2019 13:04
Google AIY cloud speech demo with added command using Google's tutorial (https://aiyprojects.withgoogle.com/voice/#makers-guide--custom-voice-user-interface)
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# 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