Skip to content

Instantly share code, notes, and snippets.

View MinhNguyen41092's full-sized avatar
🎯
Focusing

Nguyen Dinh Minh MinhNguyen41092

🎯
Focusing
  • AgilityIO
  • Da Nang, Viet Nam
View GitHub Profile
@MinhNguyen41092
MinhNguyen41092 / review-checklist.md
Created January 13, 2020 01:40 — forked from bigsergey/review-checklist.md
Front-end Code Review Checklist

Review checklist

General

  1. Does the code work?
  2. Description of the project status is included.
  3. Code is easily understand.
  4. Code is written following the coding standarts/guidelines (React in our case).
  5. Code is in sync with existing code patterns/technologies.
  6. DRY. Is the same code duplicated more than twice?
@MinhNguyen41092
MinhNguyen41092 / autoconfirm.js
Created May 24, 2019 03:20 — forked from charltoons/autoconfirm.js
AWS Cognito Lambda PreSignup Auto-Confirm Trigger
'use strict';
exports.handler = (event, context, callback) => {
console.log('Received event:', JSON.stringify(event, null, 2))
const modifiedEvent = event
// check that we're acting on the right trigger
if (event.triggerSource === "PreSignUp_SignUp"){
// auto confirm the user
@MinhNguyen41092
MinhNguyen41092 / README.md
Created May 3, 2018 05:20 — forked from hofmannsven/README.md
My simply Git Cheatsheet
// Alerts
@include alert-variant($background, $border, $text-color);
// Background Variant
@include bg-variant($parent, $color);
// Border Radius
@include border-top-radius($radius);
@include border-right-radius($radius);
@include border-bottom-radius($radius);
@MinhNguyen41092
MinhNguyen41092 / rspec_rails_cheetsheet.rb
Created July 19, 2017 08:37 — forked from them0nk/rspec_rails_cheetsheet.rb
Rspec Rails cheatsheet (include capybara matchers)
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
!!! strict
!!! XML
%html
-# Self closing tags
%img{:src => "happy.jpg"}/
%div.myclass
.myclass1