Skip to content

Instantly share code, notes, and snippets.

View jitendravyas's full-sized avatar

Jitendra Vyas jitendravyas

View GitHub Profile
@jitendravyas
jitendravyas / front-end-testing.md
Created April 7, 2016 21:41 — forked from mrmrs/front-end-testing.md
Thoughts on front-end testing

UI development as a first-class citizen

The single hardest part of front-end development at scale is making changes to code and understanding all of the visual and behavioral effects that will occur as a result.

When you build a component, tests should be written that expose each state a component can be in. This test should generate a static html file and a corresponding image for every discrete state a component can be in.

@jitendravyas
jitendravyas / email.mjml
Created May 10, 2016 11:04 — forked from anonymous/email.mjml
Made with MJML App
<mjml>
<mj-body>
<mj-container background-color="#ccc">
<!-- Company Header -->
<mj-section padding-bottom="0" background-color="#fff">
<mj-column width="100%">
<mj-image align="left" src="https://avatars0.githubusercontent.com/u/16115896?v=3&s=200" width="50px"/>
@jitendravyas
jitendravyas / email.mjml
Created May 10, 2016 12:49 — forked from anonymous/email.mjml
Made with MJML App
<mjml>
<mj-body>
<mj-container background-color="#f8f8f8">
<!-- Company Header -->
<mj-section padding-bottom="0">
<mj-column width="100%">
<mj-image align="left" src="https://avatars0.githubusercontent.com/u/16115896?v=3&s=200" width="50px"/>
@jitendravyas
jitendravyas / email.mjml
Created May 10, 2016 17:13 — forked from anonymous/email.mjml
Made with MJML App
<mjml>
<mj-body>
<mj-container background-color="#f8f8f8">
<!-- Company Header -->
<mj-section padding-bottom="0" padding-top="0" padding-bottom="0" padding-left="0">
<mj-column>
<mj-image padding-top="20" padding-left="15" padding-bottom="15" align="left" src="https://s3.eu-central-1.amazonaws.com/airfy-mail-assets/Logo.png" width="62px"/>
@jitendravyas
jitendravyas / keymap.cson
Created October 11, 2016 19:00 — forked from paulmsmith/keymap.cson
emmet + nunjucks in atom with snippets
'atom-text-editor[data-grammar="text html nunjucks"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'atom-text-editor[data-grammar="source nunjucks"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
#https://github.com/atom/autocomplete-plus/issues/86#issuecomment-82661027
'atom-text-editor.autocomplete-active:not([mini])':
'tab': 'autocomplete-plus:confirm'
@jitendravyas
jitendravyas / atomic-vs-oocss.html
Created November 7, 2016 04:09 — forked from chinchang/atomic-vs-oocss.html
Comparing code for OOCSS and Atomic CSS
<!--
Example: A simple list component with each item as a block one below other with some padding and border.
-->
<!-- Atomic CSS -->
<ul class="MB(baseSpacing) Bgc(#0280ae)">
<li class="P(halfBaseSpacing) BdB(1px)"></li>
...
</ul>