Skip to content

Instantly share code, notes, and snippets.

View jcardoz's full-sized avatar

Jonathan Cardoz jcardoz

  • Mumbai, India
View GitHub Profile
@jcardoz
jcardoz / .eslintrc
Last active January 14, 2019 21:00
eslint configuration for create react app, extending the eslint-recommended ruleset, along with some custom rules
{
"extends": ["react-app", "eslint:recommended"],
"env": {
"browser": true
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@jcardoz
jcardoz / bootstrap-config.scss
Last active December 1, 2017 19:22
configuration for bootstrap 4 grid system - addition of another breakpoint
$grid-columns: 12;
$grid-gutter-width: 30px;
$grid-breakpoints: (
// This is added so bootstrap doesnt throw a warning on compilation
xs: 0,
// Extra small screen / phone
sm: 320px,
// Small screen / phone
md: 480px,
@jcardoz
jcardoz / upgradelist.txt
Last active January 5, 2017 10:33
list of upgrade links for ember upgrade from 1.13 to 2.x
http://emberjs.com/blog/2015/05/24/another-two-oh-status-update.html#toc_removals
@jcardoz
jcardoz / checklist.txt
Last active July 25, 2017 13:19
Ember Optimization & Best Practices Checklist
Simple Complexity Changes
- Move translations from JS to HBS file
- Use ES6 fat arrow instead of anonymous functions
- Remove 'self' and use 'this' instead. This will tie with the previous rule, since the fat arrow allows for use of 'this'
from the parent scope, rather than needing a variable like 'self' or 'that' for context
  - Computed properties are awesome and should be used whenever possible.
Computed properties prevent us from doing a lot of setting or getting of different variables in our code.