Skip to content

Instantly share code, notes, and snippets.

View brandonzylstra's full-sized avatar
🛤️
Riding the Rails

Brandon Zylstra brandonzylstra

🛤️
Riding the Rails
  • UC Berkeley
  • the tubes
View GitHub Profile
@brandonzylstra
brandonzylstra / SketchSystems.spec
Created October 4, 2018 02:57
Proposed Performance Pilot Workflow - Steps
Proposed Performance Pilot Workflow - Steps
No Review Exists*
Create New Form -> Supervisor Starts Conversation
Review In Process
Supervisor Starts Conversation
Save as Draft -> Supervisor Starts Conversation
Share with Employee -> Participants Comment
Participants Comment
Employee Comments -> Participants Comment
Supervisor Edits and Comments -> Participants Comment
@brandonzylstra
brandonzylstra / SketchSystems.spec
Last active October 4, 2018 02:53
Proposed Performance Pilot Workflow - States
Proposed Performance Pilot Workflow - States
No Review Exists*
Create New Form -> New
Review In Process
Save as Draft -> Draft
Share with Employee -> Awaiting Comments
Delete -> No Review Exists
New
Draft
Awaiting Comments
@brandonzylstra
brandonzylstra / SketchSystems.spec
Last active October 4, 2018 02:54
Proposed Performance Pilot Workflow - Complete
Proposed Performance Pilot Workflow - Complete
No Review Exists*
Create New Form -> Supervisor Starts Conversation
Review In Process
Supervisor Starts Conversation
Save as Draft -> Draft
Share with Employee -> Participants Comment
New*
Draft
Participants Comment
@brandonzylstra
brandonzylstra / SketchSystems.spec
Last active October 3, 2018 17:04
Current Performance Pilot Workflow x
Current Performance Pilot Workflow x
Supervisor Starts Form
Share with Employee -> Supervisor & Employee Comment
Supervisor & Employee Comment
Supervisor Signs
Employee Signs
require 'readline'
require 'parser/current'
# TODO: detect version of Ruby being used, and require the appropriate parser
# require 'parser/rubyXY'
# opt into newer AST format since we're not maintaining backward compatibility with old formats!
Parser::Builders::Default.emit_lambda = true
Parser::Builders::Default.emit_procarg0 = true
Parser::Builders::Default.emit_encoding = true
Parser::Builders::Default.emit_index = true
Search Bar*
Inactive*
focused -> Active
Active
canceled -> Inactive
typed -> Text Entry
Empty*
@brandonzylstra
brandonzylstra / capybara cheat sheet
Last active April 26, 2018 19:12 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
#!/usr/bin/env ruby
# This is a very rough proof-of-concept for an interactive automated checklist
# of things that you need to check to get iHat running properly.
#
# A new item can be easily added as a manual step for the developer to check.
# But each step can also have an automated check added to it, so that the
# developer doesn't need to spend time checking, or even know how to check
# a particular item in the list.
#
@brandonzylstra
brandonzylstra / install-pt
Created December 30, 2016 20:04
Easily install the Platinum Searcher (on Linux) (to your personal bin directory)
#!/usr/bin/env bash
OS_CODE="linux_amd64"
# TODO: check the OS and architecture and make this work across platforms
VERSION="v2.1.5"
# TODO: scrape the GitHub README for the latest version
TARGET=~/bin
# TODO: accept command line options, and prompt if nothing is specified
@brandonzylstra
brandonzylstra / README
Last active August 1, 2016 18:35 — forked from rwest/README
Convert OS X Keychain exported entries into logins for 1Password import
These two files should help you to export passwords from a Mac OS X keychain for import into 1password.
Assumptions:
1) You have some experience with scripting/are a power-user. These scripts worked for me
but they haven't been extensively tested and if they don't work, you're on your own!
Please read this whole document before starting this process. If any of it seems
incomprehensible/frightening/over your head please do not use these scripts. You will
probably do something Very Bad and I wouldn't want that.
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they