Skip to content

Instantly share code, notes, and snippets.

@maclennann
maclennann / Gemfile
Last active September 20, 2017 13:36
Cloudability Dashboard JSON Tools
# frozen_string_literal: true
source "https://rubygems.org"
gem "rest-client"
@maclennann
maclennann / README.md
Last active August 29, 2015 14:09
jquery simpleValidator plugin

This is probably fairly straightforward, but I find myself constantly making boilerplate plugins like this. simple-validator is a small, opinionated validator that is useful for checking text in textboxes against external APIs.

This is helpful in the following flow:

  • Given: an input textbox that may be validated (not required)
  • Given: a "validate" button that may or may not be clicked before the user submits the form
  • Given: a "validation message" span
  • When: The user clicks the "validate" button.
  • Then: The text in the input textbox is submitted to an external API via AJAX
  • And: The results are printed to the "validation message" span
@maclennann
maclennann / README.md
Last active January 5, 2020 03:07
Exchange Availability Dashing Widget

This is a dashing job to find users' availability in their Exchange calendar and puts it on a dashboard.

Note: I am not a rubyist. I'd certainly welcome some idiomadicy lessons in the comments.

Setup

Drop ews-availability.rb in jobs/ (or dashing install b084fa409966f22badaf), and add the following settings to config.ru: