Skip to content

Instantly share code, notes, and snippets.

View debunn's full-sized avatar

David Bunn debunn

  • Prodigy Education
  • Calgary, AB
  • 13:44 (UTC -06:00)
View GitHub Profile
@debunn
debunn / intensify.sh
Created June 4, 2024 20:43 — forked from alisdair/intensify.sh
intensifies Slack emoji creator
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
@debunn
debunn / citrusbyte.rb
Created February 14, 2017 17:47
Code submission for CitrusByte
def flatten_array(in_array)
# This function will take an input array, and will return a flattened
# (single level) array of integers. Any values input that are not integers or
# arrays will be skipped, with a warning output for that value.
# Initialize the return array
return_array = []
# Output an error and return a blank array if the input object is not an array
if !in_array.kind_of?(Array) then