Skip to content

Instantly share code, notes, and snippets.

View SaladFork's full-sized avatar

Elad SaladFork

  • Wiser Solutions, Inc.
  • Boston, MA
  • 03:58 (UTC -05:00)
View GitHub Profile
@SaladFork
SaladFork / bootstrap4_breadcrumbs_builder.rb
Last active July 25, 2019 22:23
`breadcrumbs_on_rails` builder with Bootstrap 4 compatible output
# `Bootstrap4BreadcrumbsBuilder `is a Bootstrap 4 (alpha6) compatible breadcrumb
# builder. It is designed to work with the `breadcrumbs_on_rails` gem as a
# drop-in builder replacement.
#
# Bootstrap4BreadcrumbsBuilder accepts a limited set of options:
#
# | option | default | description |
# | ---------------- | ------- | ------------------------------------------ |
# | `:container_tag` | `:ol` | What tag to use for the list container |
# | `:tag` | `:li` | What HTML tag to use for breadcrumb items |
@SaladFork
SaladFork / .pryrc.rb
Created August 7, 2017 22:23
Powerline-like prompt for Pry
class Pry
class Prompt
SEPARATOR = "\ue0b0".freeze
def self.powerline_prompt(obj, nest_level, pry, wait)
[
Pry::Helpers::Text.cyan(" #{pry.input_array.size} "),
Pry::Helpers::Text.black_on_blue(SEPARATOR),
Pry::Helpers::Text.black_on_blue(" #{Pry.config.prompt_name} "),
Pry::Helpers::Text.blue_on_green(SEPARATOR),
@SaladFork
SaladFork / nice-numbers.js
Last active July 24, 2018 21:11
Create numbers that are a bit more human-friendly to read
// Example usage:
// Number(5).hundred() // => 500
// Number(3).billion() // => 3000000000
[
['hundred', 1e2],
['thousand', 1e3],
['million', 1e6],
['billion', 1e9],
['trillion', 1e12],
['quadrillion', 1e15],
@SaladFork
SaladFork / jackbox-games.md
Last active April 5, 2020 18:22
Jackbox games and how many players/audience they support

Jackbox Party Pack 1

  • [1-4] You Don't Know Jack 2015
  • [2-8] Fibbage XL
  • [3-8 (200)] Drawful
  • [2-8 (200)] Word Spud
  • [1-100] Lie Swatter

Jackbox Party Pack 2

  • [2-8 (200)] Fibbage 2
  • [2-8 (200)] Earwax
  • [2-8 (200)] Bidiots