Skip to content

Instantly share code, notes, and snippets.

@jaybobo
jaybobo / issue_response.csv
Last active April 30, 2023 22:21
github issue json response
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
[
{
"id": 1,
"node_id": "MDU6SXNzdWUx",
"url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
"repository_url": "https://api.github.com/repos/octocat/Hello-World",
"labels_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}",
"comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments",
"events_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events",
"html_url": "https://github.com/octocat/Hello-World/issues/1347",

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    

Cheat Sheet: Simple Authentication in Rails 5 with has_secure_password

The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.

First the simplest/core layers, then optional layers depending on which features/functionality you want.

Specs
AUTHOR Ira Herman
LANGUAGE/STACK Ruby on Rails Version 4 or 5
@jaybobo
jaybobo / maps.md
Last active April 13, 2019 15:50
Learn how to use Google Maps
@jaybobo
jaybobo / open-source-2018.md
Last active April 14, 2018 15:09
April 14th: Open Source Challenges
@jaybobo
jaybobo / obervations.md
Last active December 21, 2017 02:08
observations

I've never really had a true mentor in the way that most would describe but I've had the opportunity to learn from amazing leaders and organizations through first-hand experience and reading. I regularly distill the lessons I learn and keep a list of them that I add/modify/review roughly from week to week. It keeps me consistent.

Here's a snippet of the list:

  • Show me the incentives and I’ll show you the outcomes (widely attributed to Charlie Munger and true)
  • Don’t “disrupt” industries, find solutions to fix big problems where everyone wins
  • The best way to predict the future is to invent it
  • It’s always good to have options
  • Growth is the key to all the perks.
  • For the hundredth time, your network is your net-worth. Only *25% of people are natural extroverts so you’ll have to work at maintaining and growing your network.
@jaybobo
jaybobo / learningvue.md
Last active July 13, 2019 04:34
learning vue.js

Wifi

  • CoverMyMeds-Guest
  • pass: askjay

Beginner: Work on one of these drills

We have a number of Nodeschool.io workshopppers at our disposal:

Intermediate: Build This

We're going to build a client-side only todo app like the following:

@jaybobo
jaybobo / resources.md
Last active August 10, 2017 18:30
Rails & Development Resources

Rails

Default rails apps come setup for the SQLite database but SQLite is not supported by Heroku. You may want to use Postgres initially instead. https://www.digitalocean.com/community/tutorials/how-to-setup-ruby-on-rails-with-postgres

Authentication

Devise - gives you "all the things" - you use omniauth to setup social media login, allow password resets, setup email confirmation, register accounts. https://github.com/plataformatec/devise

Authorization

Pundit - you can create your own authorization system to create user roles and page access or use something like pundit. https://github.com/elabs/pundit