Skip to content

Instantly share code, notes, and snippets.

require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do
@ameliaikeda
ameliaikeda / nginx.conf
Created October 27, 2014 12:08
nginx config for dynamic subdomain:subdirectory mapping
user ameliaikeda staff;
worker_processes 2;
error_log /Users/ameliaikeda/dev/error.log info;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@mattdh666
mattdh666 / README.md
Last active February 10, 2018 02:04
Arc Bubble Connector Chart
@maxivak
maxivak / __readme.md
Last active May 26, 2023 03:50
Custom Rails Mailer

Custom Rails Mailer (custom deliver_method)

ActionMailer deliver_method can be different like :smtp, :test, etc.

We will create a new custom delivery method to do something along with (or instead of) sending email.

Create class for delivery

@chourobin
chourobin / 0-bridging-react-native-cheatsheet.md
Last active November 15, 2024 13:32
React Native Bridging Cheatsheet
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active June 18, 2024 11:27
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@hoandang
hoandang / php-docker-ext
Created May 20, 2017 01:12
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
@tiptopcoder
tiptopcoder / settings.json
Created January 31, 2020 21:13
VSCode eslint autofix
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}