Skip to content

Instantly share code, notes, and snippets.

View tylerjohnst's full-sized avatar
:fishsticks:

Tyler Johnston tylerjohnst

:fishsticks:
  • GitHub Staff
  • Saint Petersburg, FL
View GitHub Profile
{
"openapi": "3.0.1",
"info": {
"title": "Claims API",
"version": "v1",
"description": "This is the Claims API top level description. \n\nEdit me in /lib/tasks/open_api.rake.\n"
},
"paths": {
"/api/v1/notices/claims": {
"post": {
@tylerjohnst
tylerjohnst / resizer.rb
Last active July 26, 2022 17:49
Ruby script that resizes the height of a chrome window by a fixed amount of pixels. Useful for debugging CSS/JS animation issues.
require 'shellwords'
def tell_chrome_to(*commands)
tell(%Q(application "System Events" to tell application process "Google Chrome"), *commands)
end
def tell(target, *commands)
["tell #{target}", *commands.flatten, 'end tell']
end