Skip to content

Instantly share code, notes, and snippets.

View davehowell's full-sized avatar
🏠
Working from home - just like you

David Howell davehowell

🏠
Working from home - just like you
View GitHub Profile
@eduardorost
eduardorost / merge-schemas.scala
Last active December 19, 2023 09:36
Merge Schema with structs
import org.apache.spark.SparkConf
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.types._
import org.slf4j.{Logger, LoggerFactory}
object Main {
val logger: Logger = LoggerFactory.getLogger(this.getClass)
private lazy val sparkConf: SparkConf = new SparkConf()
.setMaster("local[*]")
@yuki-koyama
yuki-koyama / log-normal.py
Last active September 18, 2025 14:45
Plotting log-normal probability distributions with varying parameters (Python 3.6+)
# MIT License
# (c) Yuki Koyama
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.cm import ScalarMappable
from matplotlib.colors import Normalize
import seaborn as sns
import math
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active January 5, 2026 19:18
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@strebitz
strebitz / aws-sts-functions.sh
Last active February 9, 2021 15:05
Obtain AWS STS session-tokens with BASH for multiple awscli profiles or an IAM role ARN
#!/bin/bash
# Add these functions to your bash_profile or bash_rc
# Dependencies:
# - awscli - AWS command line client
# - jq - Command-line JSON processor
function cfn-validate-template() {
for template in $@
do
@veselosky
veselosky / s3gzip.py
Last active August 29, 2024 11:32
How to store and retrieve gzip-compressed objects in AWS S3
# vim: set fileencoding=utf-8 :
#
# How to store and retrieve gzip-compressed objects in AWS S3
###########################################################################
#
# Copyright 2015 Vince Veselosky and contributors
#
# 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