Skip to content

Instantly share code, notes, and snippets.

View rickbacci's full-sized avatar

Rick Bacci rickbacci

View GitHub Profile
@rickbacci
rickbacci / background_workers.markdown
Last active October 29, 2016 14:36
Background Workers

git revert

git log --oneline -4
git log --patch -3

git revert sha

get sha (at least 7 letters)

  • create app for id and secret
  • omniauth gem
  • setup figaro

initializers/omniauth.rb

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
end
rails new myapp -T --database=postgresql
# Gemfile
source 'https://rubygems.org'
ruby '2.2.2'
gem 'rails', '4.2.4'
gem 'pg'

Outline:

  • What is Cucumber
    • examples of what it looks like
    • basic folder structure
      • .feature files
      • step definitions
  • What are the benefits of using it?
    • written in plain english
    • helps you keep a broad view of your project
  • defines your feature in simple terms
@rickbacci
rickbacci / get_in.rb
Created September 14, 2015 21:13
get in
data = { an_outer: "hash",
with_another: {
inner: "hash",
and_another: {
inside: "that"
}
}
}
@rickbacci
rickbacci / foo.md
Last active August 29, 2015 14:26
Idea #3 for personal project

[FooBr]

Pitch

Work when you want. Help when you want it.

Problem

People often have small problems that they need fixed, or some quick advice. Setting up a meeting with a developer takes time. Conversely, it would be neat to 'work when you want to' kinda like Uber for programmers.

@rickbacci
rickbacci / break_git.md
Last active August 29, 2015 14:26
Idea #2 for personal project

[BreakGit]

Pitch

Git is complex. Fixes for problems in one place. User built documentation and examples.

Problem

I merged, and my work dissappeared. What do I do? Who has the solution? Do I even understand it?