I hereby claim:
- I am mudasobwa on github.
- I am mudasobwa (https://keybase.io/mudasobwa) on keybase.
- I have a public key whose fingerprint is A1CF 5FF7 B35E 1543 4485 5B94 3217 3A89 58B2 E700
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| require 'awesome_print' | |
| # one case handler, like when in case statement | |
| def whether condition, &cb | |
| $conditions[condition] = cb | |
| $conditions | |
| end |
| # encoding: utf-8 | |
| require 'digest/md5' | |
| require 'RMagick' | |
| require 'rmagick/screwdrivers' | |
| module Ruhoh::Resources::Pages | |
| class Client | |
| Help_Image = [ | |
| { |
| module Ruhoh::Views::Helpers | |
| module Paginator | |
| # current_page is set via a compiler or previewer | |
| # in which it can discern what current_page to serve | |
| def paginator | |
| per_page = config["paginator"]["per_page"] rescue 5 | |
| current_page = master.page_data['current_page'].to_i | |
| current_page = current_page.zero? ? 1 : current_page | |
| offset = (current_page-1)*per_page |
| # | |
| # Mudasobwa yadr theme. | |
| # | |
| # Based on Agnoster theme from https://gist.github.com/3712874 | |
| # | |
| # NB! In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://gist.github.com/1595572). | |
| # | |
| # Authors: | |
| # agnoster (original) |