Skip to content

Instantly share code, notes, and snippets.


dwayne. dwyn

Block or report user

Report or block dwyn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dwyn /
Created Oct 9, 2019
OG Rails Project Specs

Specifications for the Rails Assessment


  • Using Ruby on Rails for the project
  • Include at least one has_many relationship (x has_many y; e.g. User has_many Recipes)
  • Include at least one belongs_to relationship (x belongs_to y; e.g. Post belongs_to User)
  • Include at least two has_many through relationships (x has_many y through z; e.g. Recipe has_many Items through Ingredients)
  • Include at least one many-to-many relationship (x has_many y through z, y has_many x through z; e.g. Recipe has_many Items through Ingredients, Item has_many Recipes through Ingredients)
  • The "through" part of the has_many through includes at least one user submittable attribute, that is to say, some attribute other than its foreign keys that can be submitted by the app's user (attribute_name e.g. ingredients.quantity)
  • Include reasonable validations for simple model objects (list of model objects with validations e.g. User, Recipe, Ingredient, Item)
dwyn /
Last active Sep 17, 2019
Example for Rails project planning.
Hey there, here is an example set up 😊

App Summary

My app idea is my_app_name. It will do all the things and it will be awesome! Your doesn't need to be as formatted as this example. What's most important is that you get your ideas down.



attribute attribute type
  1. Add gem 'bootstrap' to your gemfile.

  2. Add gem 'jquery-rails' to your gemfile.

  3. rename the application.css file to application.scss (located in app/assets/stylesheets/application.css)

  4. Add '@import "bootstrap";` to your application.scss file

  5. Add to your application.js file. ( located at app/assets/javascripts/application.js)

dwyn / gist:6d09cd1a6b714bb29fc6ad409fbf1729
Created Jul 18, 2019 — forked from ryandeussing/gist:5667094
Find and kill a zombie shotgun server
View gist:6d09cd1a6b714bb29fc6ad409fbf1729
$ ps ax | grep shotgun
11152 s000 R+ 0:00.00 grep shotgun
10766 s001 S+ 0:00.60 /Users/ryandeussing/.rvm/gems/ruby-1.9.3-p429@sinatra/bin/shotgun
$ kill -9 10766
dwyn /
Last active Oct 4, 2019
Popular Rails Gems!

Better Errors (friggin LOVING this gem!)

Site: Better Errors replaces the standard Rails error page with a much better and more useful error page. It is also usable outside of Rails in any Rack app as Rack middleware.

Active Admin

Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.

dwyn /
Created Jun 19, 2019
Steps for Facebook OAuth 😊

Step 1: Add to gemfile.rb

  1. gem 'thin'

  2. gem 'dotenv-rails'

  3. gem 'omniauth'

  4. gem 'omniauth-facebook'

  5. run bundle install

dwyn / .zshrc
Created Mar 14, 2018 — forked from zanshin/.zshrc
My .zshrc file
View .zshrc
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#export ZSH_THEME="robbyrussell"
export ZSH_THEME="zanshin"
You can’t perform that action at this time.