Skip to content

Instantly share code, notes, and snippets.

View davidkelley's full-sized avatar

David Kelley davidkelley

View GitHub Profile
### Keybase proof
I hereby claim:
* I am davidkelley on github.
* I am davidkelley (https://keybase.io/davidkelley) on keybase.
* I have a public key ASCeqwL6T8QCUW4srlnKrYts64RlVsHreq-y5SPF4Lw3wAo
To claim this, I am signing this object:
import React, { useEffect, useRef } from 'react';
const drawBox = (canvas, { background } = {}) => new Promise((resolve, reject) => {
const { width, height } = canvas;
const ctx = canvas.getContext('2d');
if (!ctx) {
return null;
}
const drawBadge = () => {
ctx.font = `${height * 0.6}px sans-serif`;
ARG LATEX_VERSION=latest
FROM tianon/latex:$LATEX_VERSION
USER root
RUN apt-get update && apt-get install -y build-essential curl gnupg && \
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y nodejs && \
npm install -g diagrams svg2png --unsafe-perm=true
@davidkelley
davidkelley / test-2103
Created April 6, 2018 20:03
test-2103
tet-2103
1600 test
text
temp
@davidkelley
davidkelley / README.md
Created February 16, 2016 14:45
Invisible App - Text Service

Text Service

Stockflare would like to provide a "text us" service, which enables users to text a SMS number with a particular Symbol and receive the latest information about that stock.

Example

Text: "aapl"

Response: "Apple Inc latest share price is $101.43 ($167.00/$96.00). Stockflare rates at 4/5. See more at: https://stockflare.com/stocks/aapl.o"
@davidkelley
davidkelley / module.js
Last active January 12, 2021 16:33
AWS Request Signer V4 Javascript for jQuery AJAX
// Allows you to make signed requests by wrapping your original request object
// inside the Signer() function, then simply passing the return value to $.ajax.
//
// @note Depends on the CryptoJS library being present
//
// $.ajax(Signer(credentials, {
// url: 'https://xxxxxx.execute-api.us-east-1.amazonaws.com/v1/private',
// type: 'POST',
// context: this,
// dataType: 'json',