Skip to content

Instantly share code, notes, and snippets.

View Supernats's full-sized avatar

Nathan Seither Supernats

View GitHub Profile
@Supernats
Supernats / config.yml
Last active June 29, 2021 10:17
Mention the user responsible for a build on Circle
commands:
notify-slack-deploy-complete:
steps:
- slack/status:
mentions: "$(.circleci/utility/github_username_to_slack_uid $CIRCLE_USERNAME)"
#!/bin/sh
# update-gem
# Update gem in main appliation and all engines, if any.
#
# Notes:
# Must be run from root directory
# Must have postit installed, which makes sure Bundler versions defined in
# Gemfile.lock are respected.
# Takes one argument, the name of the gem
# example usage: `bin/update-gem rails`
class FindCallable
class << self
def call
new.call
end
end
INPUT = 'index_delicous_fruit_recipes_on_apple_id_and_banana_id_and_citron_id_and_durian_id'
PASSTHROUGH = lambda do |string|
require "ostruct"
module RubocopHashLiteral
class Literal
def initialize(data)
@data = data
end
def to_h
{
test:
adapter: mysql2
encoding: utf8
collation: utf8_unicode_ci
reconnect: true
database: circleci
pool: 5
username: root
password:
host: localhost

Chili Verde Spinach

Ingredients

  • Spinach
    • I am lazy and use frozen chopped spinach. 2 pounds frozen worked well for these ratios. Not sure what that would be fresh.
  • Tomatillos
    • 5, diced
  • Peppers
  • I used all poblanos. You could mix it up with Anaheims and bells as well.
# rubocop:disable Style/Alias
# rubocop:disable Style/Documentation
# rubocop:disable Lint/UnneededSplatExpansion
require 'pry'
Thread.abort_on_exception = true
class ThreadGroupsMadeEasy
def self.in_thread_group(thread_group, &block)
thread = Thread.new(&block)
<style data-reactid="173">@media (min-width: 1141px){ .rmq-22d55d46{display: none !important;}}
@media (min-width: 1140px){ .rmq-425aaea1{max-width: 1440px !important;}}
@media (min-width: 1141px){ .rmq-7a6e2143{width: 1440px !important;
top: 0px !important;
left: 50% !important;
transform: translateX(-50%) !important;}}
@media (min-width: 1141px){ .rmq-e72db07b{width: 100% !important;
max-width: 1140px !important;}}
@media (min-width: 1441px){ .rmq-54f8479e{width: 100% !important;
max-width: 1140px !important;}}
require 'securerandom'
def secure_random_test(max = 1_000_000)
ratio = (0...max).map do
SecureRandom.random_number(max)
end.uniq.count.to_f/max.to_f
(ratio - (1 - 1/Math::E)).abs
end
def skills_in_roster(roster)
skills = roster.map { |_, skills_array| skills_array }.flatten.uniq
end
def developers_with_skill(skill, roster)
roster.select do |developer, developer_skills|
developer_skills.include?(skill)
end.
keys.map(&:to_s)
end