Skip to content

Instantly share code, notes, and snippets.

@nathantqn
nathantqn / Gemfile
Last active August 30, 2020 15:11
Gemfile and Gemfile.lock for graphql_devise issue
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.7.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3', '>= 6.0.3.2'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
@nathantqn
nathantqn / reactnativeusingtypescript.md
Last active August 14, 2019 02:28
Setup New Application using Typescript
  1. Setup Typescript
  2. Setup TSLint
  3. Setup multi language support
  4. Setup react native navigation
  5. Setup multiple environments support
  6. Setup test environment for Jest and Enzyme
  7. Setup Codepush
  8. Setup Google beta for Android build

Setup Typescript

@nathantqn
nathantqn / RNMultipleTargetsInstructions.md
Created November 12, 2018 04:04 — forked from jacks205/RNMultipleTargetsInstructions.md
Settings up multiple app targets in React-Native
@nathantqn
nathantqn / .eslintrc
Created October 13, 2018 04:02
Eslint Configuration
{
"extends": ["airbnb", "prettier", "prettier/react"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true,
"classes": true
}
@nathantqn
nathantqn / zsh.md
Created September 30, 2018 13:09 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@nathantqn
nathantqn / media-query.css
Created August 23, 2018 02:01 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@nathantqn
nathantqn / enzyme_render_diffs.md
Created July 20, 2018 09:19 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@nathantqn
nathantqn / TestSetupExampleCRAEnzymeChaiMocka.md
Created July 11, 2018 07:36 — forked from busypeoples/TestSetupExampleCRAEnzymeChaiMocka.md
Mocha/Chai/Enyzme test setup with create-react-app

Basic setup for using Enzyme/Mocha/Chai with create-react-app

This is a temporary solution. Might change in the near future, this depends on how create-react-app will implement testing.

create-react-app quick-test-example

cd quick-test-example

npm run eject