Skip to content

Instantly share code, notes, and snippets.

View Widdershin's full-sized avatar

Nick Johnstone Widdershin

View GitHub Profile
@Widdershin
Widdershin / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:57 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
def sign(number)
if number > 0
return 1
elsif number < 0
return -1
end
0
end
require "formula"
class KitchenSync < Formula
homepage "https://github.com/willbryant/kitchen_sync"
url "https://github.com/willbryant/kitchen_sync/archive/0.47.tar.gz"
sha1 "b222273ca35be5e6d9dd609cd1532d204c88cee0"
depends_on "cmake" => :build
depends_on "boost"
depends_on "yaml-cpp"

Testing JavaScript embedded in Markdown

  • Use case: Blog posts and books, not documentation for software.
  • As much code as possible should be included within the Markdown file.
  • I’m currently using § as a meta-character.
    • I’m open to alternatives. Other characters I considered: ¡ ¿ Δ ≡
    • I wanted it to be a non-ASCII character, to minimize the risk of conflicts.

Checking is opt-in