Skip to content

Instantly share code, notes, and snippets.

View luetkemj's full-sized avatar
🌄
Working from home

Mark Luetke luetkemj

🌄
Working from home
View GitHub Profile
@luetkemj
luetkemj / gist:e93a8921ed8308fd63a4755d44d89b54
Created June 9, 2021 20:58
Bookmarklet to generate img with src from public google doc link
javascript:{const googleDocIdForYou = window.location.pathname.split('/')[3];const imgtag = `<img src="https://drive.google.com/uc?id=${googleDocIdForYou}" />`;prompt("Copy This HTML:", imgtag);};void(0)
@luetkemj
luetkemj / node-mailer.js
Last active January 16, 2019 22:39
Nodemailer quick setup for gmail
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
type: 'OAuth2',
user: 'example@gmail.com',
clientId: 'XXX',
clientSecret: 'XXX',
refreshToken: 'XXX'
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Inconsolata, Monaco, Consolas, "Courier New", Courier',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
[
{
"time":0,
"forecast":{
"lowTemp":63,
"highTemp":95,
"highRH":82,
"lowRH":48,
"stormType":"multiCellLineNS",
"stormStartEstimate":"morning"
[
{
"temp":64,
"time":0,
"rh":77
},
{
"temp":67,
"time":3600000,
"rh":75
[
{
"temp":64,
"time":0,
"rh":77
},
{
"temp":67,
"time":3600000,
"rh":75
@luetkemj
luetkemj / gist:dbff2d8ec505a7b8e7a8ea0e61a4a0ec
Created February 14, 2017 04:13
scribe*:weather.controller hourlyWeatherWithStorms.json
[
{
"temp":64,
"time":0,
"rh":77
},
{
"temp":67,
"time":3600000,
"rh":75
{
"duration":4740000,
"cells":[
{
"wind":6,
"cell_duration":1500000,
"cell_precipitation_rate":0.6,
"cell_solid":0,
"cell_hook":0,
"cell_delay":0,
{
"duration":4740000,
"cells":[
{
"wind":6,
"cell_duration":1500000,
"cell_precipitation_rate":0.6,
"cell_solid":0,
"cell_hook":0,
"cell_delay":0
[
{
"temp":64,
"time":0,
"rh":77
},
{
"temp":67,
"time":3600000,
"rh":75