Skip to content

Instantly share code, notes, and snippets.

View brynmrk's full-sized avatar
🐛
Finding a bug!

Bryan Mark Fajutag brynmrk

🐛
Finding a bug!
View GitHub Profile
@brynmrk
brynmrk / 0-media-query-snippets.md
Created November 5, 2018 09:15 — forked from rstacruz/0-media-query-snippets.md
Media query snippets

Media query snippets

Type b4+ then press TAB. It expands to

@media (min-width: $screen-xs-min) { // > 480px

Snippets

@brynmrk
brynmrk / index.md
Created August 14, 2017 08:50 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

@brynmrk
brynmrk / webpack_c9.sh
Created August 14, 2017 08:15 — forked from kdabir/webpack_c9.sh
Running webpack on c9.io
webpack-dev-server --progress --colors --host $IP --port $PORT
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
context "GET index" do
#context "POST create" do
#context "GET show" do
#context "PATCH update" do (or PUT update)
#context "DELETE destroy" do
#context "GET new" do
@brynmrk
brynmrk / rspec_model_testing_template.rb
Last active March 2, 2017 07:07 — forked from PWSdelta/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails.
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems: