YARD CHEATSHEET http://yardoc.org
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
{-# OPTIONS_GHC -fcontext-stack=32 #-} | |
import XMonad hiding ( (|||) ) | |
import qualified XMonad.StackSet as W | |
import Control.OldException(catchDyn,try) | |
import Data.Char (toLower) | |
import Data.List (intercalate, intersperse, isSuffixOf, isPrefixOf) | |
import qualified Data.Map as M (fromList) |
# ....other stuff here | |
paginate: 10 |
# | |
# weechat.conf -- weechat v0.3.2 | |
# | |
[debug] | |
[startup] | |
command_after_plugins = "" | |
command_before_plugins = "" | |
display_logo = on |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
require "bundler/inline" | |
gemfile do | |
gem "rspec" | |
end | |
require "rspec/autorun" | |
RSpec.describe "inline Bundler and autorun RSpec" do | |
it "is convenient for self-contained examples & bug repros" do |
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- features/** | |
- dependabot/** | |
pull_request: | |
branches: |